A Dockerfile that produces a Centos-based Docker image that will run the latest NLP4L
This example creates the image with the tag
internavenue/centos-nlp4l, but you can change this to use your own username.
$ docker build -t="internavenue/centos-nlp4l" .
sudo docker run -t -i -p internavenue/centos-nlp4l:centos7
Once inside, you can run NLP4l with
By default, NLP4L code for generating the Lucene indices of different corpora is /tmp, therefore you should map this directory to somewhere in the host. If you also want to map downloaded corpora in the host to the default location within the NLP4L working directory then you should:
sudo docker run -v ~/nlp/corpora:/nlp4l/corpora -v ~/nlp/indices:/tmp -ti internavenue/centos-nlp4l bash