This commit is contained in:
rjawor 2019-05-19 13:32:38 +02:00
parent 1aaecb49dc
commit 43b0fd56a9
3 changed files with 2 additions and 6 deletions

View File

@ -8,7 +8,7 @@ ENV LANG pl_PL.UTF-8
ENV LANGUAGE pl_PL:pl ENV LANGUAGE pl_PL:pl
ENV LC_ALL pl_PL.UTF-8 ENV LC_ALL pl_PL.UTF-8
RUN apt-get install -y git libfcgi-dev libpq-dev python3-psycopg2 nginx php apache2 libapache2-mod-php spawn-fcgi cmake g++ libboost-dev libboost-serialization-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libboost-program-options-dev libboost-iostreams-dev libboost-regex-dev libboost-locale-dev liblog4cpp5-dev libconfig++-dev libconfig-dev libpcre3-dev RUN apt-get install -y git libfcgi-dev libpq-dev python3-psycopg2 nginx php apache2 libapache2-mod-php spawn-fcgi cmake g++ libboost-dev libboost-serialization-dev libboost-test-dev libboost-filesystem-dev libboost-system-dev libboost-program-options-dev libboost-iostreams-dev libboost-regex-dev libboost-locale-dev liblog4cpp5-dev libconfig++-dev libconfig-dev libpcre3-dev mono-complete
RUN git clone https://git.code.sf.net/p/tmconcordia/code RUN git clone https://git.code.sf.net/p/tmconcordia/code
RUN cd code && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig RUN cd code && mkdir build && cd build && ../cmake.sh && make && make install && ldconfig
RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git RUN git clone https://git.wmi.amu.edu.pl/rjawor/concordia-server.git

View File

@ -10,10 +10,6 @@ services:
POSTGRES_DB: concordia_db POSTGRES_DB: concordia_db
POSTGRES_USER: concordia POSTGRES_USER: concordia
POSTGRES_PASSWORD: concordia POSTGRES_PASSWORD: concordia
lemmagen:
build: ./lemmagen
container_name: lemmagen
restart: always
concordia-server: concordia-server:
build: ./concordia-server build: ./concordia-server
container_name: concordia-server container_name: concordia-server
@ -22,4 +18,3 @@ services:
- "10001:8800" - "10001:8800"
depends_on: depends_on:
- "concordia-postgres" - "concordia-postgres"
- "lemmagen"

View File

@ -27,3 +27,4 @@ end = time.time()
print "Execution time: %.4f seconds." % (end-start) print "Execution time: %.4f seconds." % (end-start)
print "Result: " print "Result: "
print response print response
print(response['lemmatizedSentence'])