Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support training Moses in the docker container #9

Open
Pike opened this issue Sep 24, 2017 · 3 comments
Open

Support training Moses in the docker container #9

Pike opened this issue Sep 24, 2017 · 3 comments

Comments

@Pike
Copy link

Pike commented Sep 24, 2017

It'd be great to be able to train the MT inside the docker container, and that should be possible with up-to-date docker now. I heard. @DewiBrynJones said so, at least :-)

@DewiBrynJones
Copy link
Contributor

On the case. Stay tuned...

@DewiBrynJones
Copy link
Contributor

@tornoz

@DewiBrynJones
Copy link
Contributor

Latest commits on the 'dockerization' branch enables this.

To quickly verify your pull/clone, delete all Moses related containers and images. Then do:

 $ make

which builds the Dockerfile.

Then simply run to get a running container and a command prompt:

 $ make run
 root@798d82cad57a:~/moses-smt# python moses.py fetchcorpus -e Meddalwedd

This will fetch en-cy bitexts that techiaith in Bangor have prepared from the localizations of Firefox, WordPress, LibreOffice etc. from a URL hardcoded in the scripts. 'Meddalwedd'=Software

Then train.....

 root@798d82cad57a:~/moses-smt# python moses.py train -e Meddalwedd -n 8 -s en -t cy

and start a server...

 root@798d82cad57a:~/moses-smt# python moses.py start -e Meddalwedd -s en -t cy

Then in a browser on the same machine go to:

http://localhost:8008

A demo page should appear. Enter

"An error occurred while connecting to the server"

in the box on the left. You should get

"Digwyddodd gwall wrth geisio cysylltu i'r gweinydd"

in the box on the right.

Mapped volumes are required in order to train with your own bitext data. Coming next...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants