-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bernhard Bermeitinger
committed
Mar 8, 2017
1 parent
7ec02e7
commit e57942e
Showing
28 changed files
with
88 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
examples/ | ||
.gitignore | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
FROM python:3.4.5 | ||
FROM python:3.5.2 | ||
MAINTAINER Open Semantics Group <[email protected]> | ||
|
||
WORKDIR /root | ||
ADD . ./ | ||
# update old version | ||
RUN pip list --local --outdated --format=freeze | cut -d= -f 1 | xargs -n1 pip install -U | ||
|
||
WORKDIR /app | ||
ADD requirements.txt /app/ | ||
|
||
# Project requirements | ||
RUN pip install -r requirements.txt | ||
# .. plus some NLTK corpora | ||
RUN python -m nltk.downloader names punkt | ||
|
||
# Deployment requirements | ||
RUN pip install 'uwsgi==2.0.14' | ||
|
||
# finally add application | ||
ADD src/ /app/ | ||
|
||
# Go! | ||
CMD [ "uwsgi", "--ini", "uwsgi.ini" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
joblib==0.10.3 | ||
joblib==0.11 | ||
pycorenlp==0.3.0 | ||
nltk==3.2.1 | ||
flask==0.11.1 | ||
typing==3.5.2.2 | ||
nltk==3.2.2 | ||
Flask==0.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/classifier/GenderClassifier.py → ...oreference/classifier/GenderClassifier.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/references/NameReference.py → src/coreference/references/NameReference.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 4 additions & 6 deletions
10
src/references/PronominalReference.py → ...ference/references/PronominalReference.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing import Dict | ||
|
||
|
||
class ResolvedPassage(object): | ||
def __init__(self, resolved_passage: int, linked_entities: Dict[str, str]): | ||
self.resolved_passage = resolved_passage | ||
self.linked_entities = linked_entities | ||
|
||
def __str__(self): | ||
return "{self.resolved_passage} {self.linked_entities}".format(self=self) | ||
|
||
def __repr__(self): | ||
return self.__str__() |
1 change: 0 additions & 1 deletion
1
src/references/Substitution.py → src/coreference/references/Substitution.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 2 additions & 12 deletions
14
src/tests/test_Resolver.py → src/coreference/tests/test_Resolver.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 3 additions & 13 deletions
16
src/tests/test_WikiArticle.py → src/coreference/tests/test_WikiArticle.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[uwsgi] | ||
protocol = http | ||
socket = 0.0.0.0:5128 | ||
mount = /corefapp=service.py | ||
callable = application | ||
mount = /app=service.py | ||
callable = app | ||
processes = 4 | ||
master = true | ||
harakiri = 600 | ||
uid = root | ||
gid = root | ||
no-orphans = true | ||
plugins = python3 | ||
enable-threads = "*" |