-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·74 lines (61 loc) · 1.51 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import os
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
install_requires = [
'gunicorn',
'cornice',
'waitress',
'tensorflow-hub',
'colander',
'scipy',
'gensim',
# text cleanup utilities
'textacy',
'ftfy',
'syntok',
'truecase',
# command line utils
'click',
]
testing_requires = [
'pytest',
'pytest-cov'
]
extras_requires = [
'allennlp',
]
setup(name='nlpservice',
version=0.1,
description='NLP Services via REST',
long_description=README,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application"
],
keywords="web services",
author='',
author_email='',
url='',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'testing': testing_requires,
'extras': extras_requires,
},
entry_points="""\
[paste.app_factory]
main=nlpservice:main
[console_scripts]
prepare=nlpservice.nlp.prepare:main
kv=nlpservice.nlp.fasttext:main
train=nlpservice.nlp.classify:main
label=nlpservice.nlp.classify:label
""",
# retrain=nlpservice.nlp.classify:retrain
paster_plugins=['pyramid'])