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 have trained Flatcat model according to Code Examples for using library interface the document.
it is trained by cmd command, and could segment by command line. But when I use API to load this model , there is problem. The code is the same as the in the document of Code Examples for using library interface . any idea what it happened ?
Thank you!
thuflatcat=thumorfess.thuflatcat("-model_file baseline.model.flatcat.tar.gz")
File "__init__.py", line 86, in __init__
self.model=self.io.read_binary_model_file(self.model_file)
File "/usr/local/lib/python2.7/dist-packages/Morfessor-2.0.2alpha1-py2.7.egg/morfessor/io.py", line 176, in read_binary_model_file
model = self.read_binary_file(file_name)
File "/usr/local/lib/python2.7/dist-packages/Morfessor-2.0.2alpha1-py2.7.egg/morfessor/io.py", line 183, in read_binary_file
obj = pickle.load(fobj)
cPickle.UnpicklingError: invalid load key, ''.
The text was updated successfully, but these errors were encountered:
I have trained Flatcat model according to Code Examples for using library interface the document.
it is trained by cmd command, and could segment by command line. But when I use API to load this model , there is problem. The code is the same as the in the document of Code Examples for using library interface . any idea what it happened ?
Thank you!
The text was updated successfully, but these errors were encountered: