Closed kaharjan closed 8 years ago
The most logical thing would be if you are using the wrong encoding. Did you make sure that the InputFile is opened with the right encoding flag? Morfessor uses internally always unicode strings (unicode in python2, str in python3)
Thank you!!! It helps...
I write python code to segment given words, main code is :
only few words segmented, but i used the same model on commend line to segment the same text, and most of the words are segmented,
$morfessor-segment -l model.bin test.txt
So any idea what is wrong in my python code? thank you!!!