-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup.py
61 lines (60 loc) · 2.11 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
from setuptools import setup, find_packages
with open('README.md', 'r') as f:
readme = f.read()
version = '0.2.4'
setup(
name='tner',
packages=find_packages(exclude=["asset", "examples", "static", "templates", "tests"]),
version=version,
license='MIT',
description='Transformer-based named entity recognition',
url='https://github.com/asahi417/tner',
download_url="https://github.com/asahi417/tner/archive/{}.tar.gz".format(version),
keywords=['ner', 'nlp', 'language-model'],
long_description=readme,
long_description_content_type="text/markdown",
author='Asahi Ushio',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers', # Define that your audience are developers
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: MIT License', # Again, pick a license
'Programming Language :: Python :: 3', #Specify which pyhton versions that you want to support
],
extras_require={
"app": [
'uvicorn==0.11.8',
'jinja2==2.11.3',
'aiofiles==0.5.0',
'fastapi==0.65.2',
'matplotlib==3.3.1',
'Pillow>=7.1.0',
],
"japanese": [
'sudachipy',
'sudachidict_core',
]
},
include_package_data=True,
test_suite='tests',
install_requires=[
'torch',
'allennlp-light',
'transformers',
'sentencepiece',
'seqeval',
'datasets'
],
python_requires='>=3.6',
entry_points={
'console_scripts': [
'tner-train = tner.tner_cl.train:main_trainer',
'tner-train-search = tner.tner_cl.train:main_trainer_with_search',
'tner-evaluate = tner.tner_cl.evaluate:main',
'tner-predict = tner.tner_cl.predict:main',
'tner-push-to-hub = tner.tner_cl.push_to_hub:main'
],
}
)