Prepare Dockerfile for benchmarks
Change-Id: I2b2ce8ae05b5a35d572a1a525d84900edf4d7b94
diff --git a/Dockerfile b/Dockerfile
index 8444470..c734929 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -224,13 +224,13 @@
RUN rm -r ./nnsplit_bench && \
rm /euralex/v0.1.zip
-RUN chown euralex:euralex -R /euralex/treetagger
+RUN chown euralex:euralex -R /euralex
USER euralex
WORKDIR /euralex
-ENTRYPOINT [ "sh" ]
+ENTRYPOINT [ "perl" ]
LABEL maintainer="korap@ids-mannheim.de"
LABEL description="Tokenizer evaluation for EURALEX"
\ No newline at end of file
diff --git a/Readme.md b/Readme.md
index 1c3d2ae..97b868e 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,11 +1,11 @@
-# Running the evaluation suite
+# Creating the container
To build the Docker image, run
```shell
-$ docker build -f Dockerfile -t korap/euralex .
+$ docker build -f Dockerfile -t korap/euralex22 .
```
-This will download and install an image of approximately 4GB.
+This will download and install an image of approximately 6GB.
It will download and install the following
tokenizers in an image to your system:
@@ -16,6 +16,19 @@
...
+
+# Running the evaluation suite
+
+To run the benchmark, call
+
+```shell
+$ docker run --rm -it \
+ -v ${PWD}/benchmarks:/euralex/benchmarks \
+ -v ${PWD}/corpus:/euralex/corpus \
+ korap/euralex22 benchmarks/benchmark.pl
+```
+
+
# Licenses
For Treetagger: