Alpino in Docker
Runing Alpino inside Docker.
About Alpino: http://www.let.rug.nl/vannoord/alp/Alpino/
If you are using Docker for Windows you need
In the examples below substitute
If you are using Docker Toolbox you need
If you have been using an older version of
alpino.bash, you may need
to update the Docker image, before using the new script:
docker pull rugcompling/alpino:latest
Starting Alpino in Docker
There are two ways of starting Alpino in Docker.
1— This brings you into a bash shell inside Docker, where you can run Alpino itself:
Inside the shell, there is a virtual directory
~/data that corresponds
to the real directory you gave as an argument to the script, in this
$HOME/alpino. You use it to save and access data on your regular
2— You can also run a single command, without going to the shell first:
alpino.bash $HOME/alpino Alpino
In this case, there is no directory
~/data in Docker, but there is
/work/data with the same purpose.
Examples of running Alpino inside Docker
Inside Docker, you can run Alpino interactively, or as a command line tool.
If you have access to an X11 server, then this starts the Alpino GUI:
This starts and interactive version of Alpino without the GUI:
Use as a command line tool
This tokenizes and parses the text from
and saves the results in the directory
cd ~/data mkdir xml partok ~/voorbeelden/weerbericht.txt | Alpino -flag treebank xml debug=1 end_hook=xml user_max=900000 -parse
If you have access to an X11 server, you can view the generated trees:
... or edit the trees: