Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Load allennlp_models with plugins (#23)
Browse files Browse the repository at this point in the history
* Load allennlp_models with plugins

* 4matting
  • Loading branch information
dirkgr authored Apr 22, 2020
1 parent 0eff217 commit 1f841a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ per-file-ignores =
# __init__.py files are allowed to have unused imports and lines-too-long
allennlp_models/__init__.py:F401
allennlp_models/**/__init__.py:F401,E501
allennlp_plugins/**/__init__.py:F401

# tests don't have to respect
# E501: line length
Expand Down
8 changes: 8 additions & 0 deletions allennlp_plugins/allennlp_models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import allennlp_models.coref
import allennlp_models.lm
import allennlp_models.ner
import allennlp_models.nli
import allennlp_models.rc
import allennlp_models.sentiment
import allennlp_models.seq2seq
import allennlp_models.syntax
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@
author="Allen Institute for Artificial Intelligence",
author_email="[email protected]",
license="Apache",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
include=["allennlp_plugins.*", "allennlp_models"],
),
install_requires=install_requirements,
setup_requires=setup_requirements,
tests_require=["pytest", "flaky", "responses>=0.7"],
Expand Down

0 comments on commit 1f841a3

Please sign in to comment.