Open neonlight1203 opened 5 years ago
Hi, I have the same question, is there any way around to use .arpa files?
Hi @bulls-i @aayushkubb , You can use arpa (https://github.com/sfischer13/python-arpa ), to convert the .arpa files to a dictionary.
Or you can read the arpa files using simple file handling techniques in python without the use of any libraries. Refer to section 7.2 for more details(https://docs.python.org/3/tutorial/inputoutput.html)
I have my corpus in plain text and language model in
.arpa
format generated from KenLM. How can I input those to the algorithm?