-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from msg-systems/development
Merge v3.0.0 into master
- Loading branch information
Showing
70 changed files
with
13,523 additions
and
11,066 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,129 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ |
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,4 @@ | ||
include SHORTREADME.md | ||
global-include *.cfg | ||
global-include *.csv | ||
global-include LICENSE |
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,17 @@ | ||
import os | ||
import holmes_extractor as holmes | ||
|
||
if __name__ in ('__main__', 'example_chatbot_DE_insurance'): | ||
script_directory = os.path.dirname(os.path.realpath(__file__)) | ||
ontology = holmes.Ontology(os.sep.join(( | ||
script_directory, 'example_chatbot_DE_insurance_ontology.owl'))) | ||
holmes_manager = holmes.Manager(model='de_core_news_lg', ontology=ontology, number_of_workers=2) | ||
holmes_manager.register_search_phrase('Jemand benötigt eine Versicherung') | ||
holmes_manager.register_search_phrase('Ein ENTITYPER schließt eine Versicherung ab') | ||
holmes_manager.register_search_phrase('ENTITYPER benötigt eine Versicherung') | ||
holmes_manager.register_search_phrase('Eine Versicherung für einen Zeitraum') | ||
holmes_manager.register_search_phrase('Eine Versicherung fängt an') | ||
holmes_manager.register_search_phrase('Jemand zahlt voraus') | ||
|
||
holmes_manager.start_chatbot_mode_console() | ||
# e.g. 'Richard Hudson und Max Mustermann brauchen eine Krankenversicherung für die nächsten fünf Jahre' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
import holmes_extractor as holmes | ||
|
||
if __name__ in ('__main__', 'example_chatbot_EN_insurance'): | ||
script_directory = os.path.dirname(os.path.realpath(__file__)) | ||
ontology = holmes.Ontology(os.sep.join(( | ||
script_directory, 'example_chatbot_EN_insurance_ontology.owl'))) | ||
holmes_manager = holmes.Manager( | ||
model='en_core_web_lg', ontology=ontology, number_of_workers=2) | ||
holmes_manager.register_search_phrase('Somebody requires insurance') | ||
holmes_manager.register_search_phrase('An ENTITYPERSON takes out insurance') | ||
holmes_manager.register_search_phrase('A company buys payment insurance') | ||
holmes_manager.register_search_phrase('An ENTITYPERSON needs insurance') | ||
holmes_manager.register_search_phrase('Insurance for a period') | ||
holmes_manager.register_search_phrase('An insurance begins') | ||
holmes_manager.register_search_phrase('Somebody prepays') | ||
holmes_manager.register_search_phrase('Somebody makes an insurance payment') | ||
|
||
holmes_manager.start_chatbot_mode_console() | ||
# e.g. 'Richard Hudson and John Doe require health insurance for the next five years' |
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
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
Oops, something went wrong.