-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
74 lines (70 loc) · 2.5 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
# ========================================================================
# Copyright 2020 Emory University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ========================================================================
# -*- coding:utf-8 -*-
# Author: hankcs
from os.path import abspath, join, dirname
from setuptools import find_packages, setup
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
version = {}
with open(join(this_dir, "elit", "version.py")) as fp:
exec(fp.read(), version)
setup(
name='elit',
version=version['__version__'],
description='The Emory Language and Information Toolkit (ELIT)',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/emorynlp/elit',
author='Han He, Liyan Xu',
license='Apache License 2.0',
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
"Development Status :: 3 - Alpha",
'Operating System :: OS Independent',
"License :: OSI Approved :: Apache Software License",
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
"Topic :: Text Processing :: Linguistic"
],
keywords='corpus,machine-learning,NLU,NLP',
packages=find_packages(exclude=['docs', 'tests*']),
include_package_data=True,
install_requires=[
'torch>=1.6.0',
'sentencepiece>=0.1.95',
'termcolor==1.1.0',
'phrasetree==0.0.8',
'pynvml==8.0.4',
'alnlp==1.0.0rc27',
'penman==1.2.1',
'toposort==1.5',
'unofficial_stog==0.0.21',
'uvicorn==0.13.1',
'fastapi==0.65.2',
'transformers>=4.6.1',
'editdistance==0.5.3',
'scipy>=1.5.4'
],
python_requires='>=3.7',
entry_points={
'console_scripts': [
'elit=elit.main:main',
],
},
)