- Clone cSMTiser repository:
$ cd ~
$ git clone https://github.com/clarinsi/csmtiser.git
- Copy and adjust config. Use values of variables
working_dir
,moses_scripts
,kenlm
,lm_order
,moses
,mgiza
as they are indocker/config.docker.yml
:
$ cp ~/csmtiser/docker/config.docker.yml ~/csmtiser/myconfig.yml
$ # adjust ~/csmtiser/myconfig.yml, e.g. num_cores variable
- Run docker image
greegorey/csmtiser
, mounting your~/csmtiser
directory into container:
$ docker run -v ~/csmtiser:/csmtiser greegorey/csmtiser python preprocess.py /csmtiser/myconfig.yml
- Proceed further with the main tutorial, just add
docker run -v ~/csmtiser:/csmtiser greegorey/csmtiser
every time before you runpython <COMMAND>
.