redesign
This commit is contained in:
parent
976f8f787f
commit
ec497fbd2f
18
concordia-aligner/Dockerfile
Normal file
18
concordia-aligner/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
|
||||
# Set the locale
|
||||
RUN apt-get update && apt-get install -y locales
|
||||
RUN sed -i -e 's/# pl_PL.UTF-8 UTF-8/pl_PL.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
|
||||
ENV LANG pl_PL.UTF-8
|
||||
ENV LANGUAGE pl_PL:pl
|
||||
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://github.com/clab/fast_align
|
||||
RUN cd fast_align && mkdir build && cd build && cmake .. && make && cp fast_align ../../concordia-server/fast-aligner
|
||||
|
||||
|
||||
#CMD cd concordia-server/fast-aligner/ && make SRC_LANG=pl TRG_LANG=en CORPUS_NAME=opensubtitles_sample
|
3
concordia-aligner/align_corpus.sh
Executable file
3
concordia-aligner/align_corpus.sh
Executable file
@ -0,0 +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
|
1000
concordia-aligner/corpora/opensubtitles_sample/ids.txt
Normal file
1000
concordia-aligner/corpora/opensubtitles_sample/ids.txt
Normal file
File diff suppressed because it is too large
Load Diff
57945
concordia-aligner/corpora/opensubtitles_sample/ids_sources.txt
Normal file
57945
concordia-aligner/corpora/opensubtitles_sample/ids_sources.txt
Normal file
File diff suppressed because it is too large
Load Diff
1000
concordia-aligner/corpora/opensubtitles_sample/src.txt
Normal file
1000
concordia-aligner/corpora/opensubtitles_sample/src.txt
Normal file
File diff suppressed because it is too large
Load Diff
1000
concordia-aligner/corpora/opensubtitles_sample/trg.txt
Normal file
1000
concordia-aligner/corpora/opensubtitles_sample/trg.txt
Normal file
File diff suppressed because it is too large
Load Diff
3
concordia-aligner/setup.sh
Executable file
3
concordia-aligner/setup.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker build --no-cache --tag="concordia-aligner:Dockerfile" .
|
@ -22,5 +22,3 @@ services:
|
||||
build: ./concordia-preprocessor
|
||||
container_name: concordia-preprocessor
|
||||
restart: always
|
||||
ports:
|
||||
- "10002:9001"
|
||||
|
Loading…
Reference in New Issue
Block a user