I have *.arpa file with list of n-gramms. I can easily extract words like str-type from it.
But after convert *.arpa -> *.bin I can't do it!
I tried str.decode() but I got an error an error: 'utf-8' codec can't decode byte 0x80 in position 11: invalid start byte
How can I get words from probing binary file?
I have
*.arpa
file with list of n-gramms. I can easily extract words like str-type from it. But after convert*.arpa -> *.bin
I can't do it! I triedstr.decode()
but I got an error an error:'utf-8' codec can't decode byte 0x80 in position 11: invalid start byte
How can I get words from probing binary file?