mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
363 B
363 B
Moses interface for python
-
Compile the cython code
cython --cplus binpt/binpt.pyx
-
Build the python extension
python setup.py build_ext -i
-
Check the example code
echo '! " and "' | python example.py /media/Data/data/smt/sample/bin/sample.en-es 5 1
echo "casa" | python example.py /media/Data/data/smt/fapesp/bin/fapesp.br-en 5