Open ttpro1995 opened 6 years ago
Yes, the examples in the README are python 2.
Is there a way to make this to work for python3?
I fixed this issue by doing path.encode(). This issue exists because of handling of strings in python2 and 3. By default, in python3 the str is a unicode. The encode handles this and you can use the code with python3.
I generate model with srilm
ngram-count -text VNESEcorpus.txt -order 3 -unk -lm vnese.lm
When I load with pysrilm, it need bytes, not str