You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried, and I got Error:
File "stringsource", line 2, in pycrfsuite._pycrfsuite.Tagger.reduce_cython
TypeError: self.c_tagger cannot be converted to a Python object for pickling
my plan like this:
model_list = [model_1,model_2, ... ,model_n]
def do_tagging(args):
model ,sent = args
tagger = crfs.Tagger()
tagger.open(model)
labels = tagger.tag(sent)
with Pool(processes=num_proc) as p:
predict_result = p.map(do_tagging, zip(model_list, repeat(sent))))
The text was updated successfully, but these errors were encountered:
huwen2117
changed the title
Can I predict with crf model using multiple thread? I tried, But I got errors -_-!
Can I predict with crf model using multiple processes? I tried, But I got errors -_-!
Aug 20, 2019
I tried, and I got Error:
File "stringsource", line 2, in pycrfsuite._pycrfsuite.Tagger.reduce_cython
TypeError: self.c_tagger cannot be converted to a Python object for pickling
my plan like this:
The text was updated successfully, but these errors were encountered: