kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

building python library

Open flydsc opened this issue 8 years ago • 2 comments

Hi, thank you for this nice tool and also thanks for providing a windows version.

I have to work on a sever with Windows Server 8 R2 and I had successfully built the KenLM itself with the project files in the widows folder. However, it always went to error when I was trying to install the Python library on this windows server.

P.S. I am mainly working on python, so KenLM training tool is not that urgent for me since I could train the data from other machine, so I just want to know how to install the python part.

Any help would be appreciated.

flydsc avatar Nov 09 '15 13:11 flydsc

The python setup.py currently assumes gcc and a command line. If you can add python/kenlm.cpp to the Windows build and link against the appropriate python binding libraries it should work. Preferably as another MSVC "solution". Or find a way to fix setup.py.

I don't have a Windows machine. Windows compatibility is done solely by contributors.

kpu avatar Nov 10 '15 12:11 kpu

Any luck on this?

burgil avatar Jan 27 '22 02:01 burgil