Project to connect MTMonkey and Eman-Lite
EmanLite MTMonkey Boost library XMLRPC library
For each folder in models/* a. If model.out not exists:
- Check if train.tgt and train.src exist
- If not exists mono.tgt - copy from defaults/mono.tgt
- If not exist dev.tgt, dev.src - copy from defaults/dev.*
- If not exist test.tgt, test.src - copy from defaults/test.*
- Run train-system.sh from eman-lite
- Create model.out with model id b. If mosesserver.pid not exists
- Get random free port
- Launch mosesserver, based on defaults/mosesserver.cmd
- Write pid and port to mosesserver.pid and mosesserver.port c. If worker.pid not exists
- Create worker.cfg (based on defaults/worker.cfg), modelid from model.out and mosesserver.port, source and target languages from model.ini
- Create worker.pid
- Create worker.to.appserver with model and url
- Start new worker d. Update appserver
- If appserver.port exists, use it
- Update appserver.cfg based on active workers (one's which have worker.to.appserver)
- If appserver.pid exists - appserver
- Start new appserver
- Install all required applications
- Update settings in process_models.sh (now configuration is set for MetaCentrum environment)
- Run process_models.sh
- To stop MTMonkey appserver - run stop_appserver.sh
- To stop MTMonkey workers - run stop_workers.sh
- To stop Moses servers - run stop_mosesservers.sh
- cd to folder with moses.final.ini
- Launch cmd: LD_LIBRARY_PATH="PATH_TO_BOOST/install/lib/:PATH_TO_XMLRPC/lib:$LD_LIBRARY_PATH" PATH_TO_EMANLITE/install_dir/mosesdecoder/bin/mosesserver --server 1 --server-port MOSES_SERVER_PORT -f PATH_TO_EMANLITE/test/workdir/moses.final.ini
- cd to mtmonkey main folder
- Server cmd: python appserver/src/appserver.py -c ../../config-example/appserver.cfg
- Worker cmd: python worker/src/worker.py -c config-example/worker.cfg