Skip to content

Commit

Permalink
Merge pyramid_service branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jul 23, 2017
2 parents 055b8fc + 19e1201 commit 353a298
Show file tree
Hide file tree
Showing 61 changed files with 2,580 additions and 1,614 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
source = eea_corpus
omit = eea_corpus/test*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,5 @@ local/
model.saved
pip-selfcheck.json
share/
*~
npm-debug.log*
22 changes: 18 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,30 @@ RUN pip --no-cache-dir install \
cld2-cffi \
pyldavis \
phrasemachine \
textacy
textacy \
wordcloud

# # convert phrasemachine to python3 code
RUN cd /usr/local/lib/python3.5/site-packages/phrasemachine \
&& 2to3 -w *.py

RUN python -m spacy.en.download all

COPY corpus /corpus
RUN pip --no-cache-dir install \
gensim

# COPY corpus /corpus
RUN mkdir /corpus

ADD ./src /src

# RUN pip install -r /src/eea.corpus/requirements.txt

RUN cd /src/eea.corpus \
&& python setup.py develop

WORKDIR /src/eea.corpus

WORKDIR /corpus
CMD python setup.py develop && pserve /src/eea.corpus/development.ini

EXPOSE 8888
EXPOSE 6543
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.txt *.ini *.cfg *.rst
recursive-include eea_corpus *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.jinja2
1,302 changes: 0 additions & 1,302 deletions corpus/data.csv

This file was deleted.

132 changes: 0 additions & 132 deletions corpus/eea_corpus.py

This file was deleted.

146 changes: 0 additions & 146 deletions corpus/load_eea_corpus.py

This file was deleted.

Loading

0 comments on commit 353a298

Please sign in to comment.