This commit is contained in:
Rafał Jaworski 2019-06-13 13:00:04 +02:00
parent ec497fbd2f
commit 7a624ec2cf
3 changed files with 5 additions and 3 deletions

2
concordia-aligner/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
corpora/**/*.lem
corpora/**/*.norm

View File

@ -10,9 +10,9 @@ ENV LC_ALL pl_PL.UTF-8
RUN apt-get install -y git cmake g++ python3 python3-pip
RUN pip3 install requests
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-aligner.git
RUN git clone https://github.com/clab/fast_align
RUN cd fast_align && mkdir build && cd build && cmake .. && make && cp fast_align ../../concordia-server/fast-aligner
RUN cd fast_align && mkdir build && cd build && cmake .. && make && cp fast_align ../../concordia-aligner/
#CMD cd concordia-server/fast-aligner/ && make SRC_LANG=pl TRG_LANG=en CORPUS_NAME=opensubtitles_sample

View File

@ -1,3 +1,3 @@
#!/bin/sh
docker run -it --rm --name=concordia-aligner --network=concordia-docker_default --mount src="$(pwd)"/corpora,target=/concordia-server/fast-aligner/corpora,type=bind concordia-aligner:Dockerfile
docker run -it --rm --name=concordia-aligner --network=concordia-docker_default --mount src="$(pwd)"/corpora,target=/concordia-aligner/corpora,type=bind concordia-aligner:Dockerfile