-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
60 lines (54 loc) · 1.84 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
# -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description:
"""
import sys
from setuptools import setup, find_packages
__version__ = None
exec(open('wordrank/version.py').read())
if sys.version_info < (3,):
sys.exit('Sorry, Python3 is required for wordrank.')
with open('README.md', 'r', encoding='utf-8') as f:
readme = f.read()
setup(
name='wordrank',
version=__version__,
description='word rank, context-aware bag-of-words term weights for query and document.',
long_description=readme,
long_description_content_type='text/markdown',
author='XuMing',
author_email='xuming624@qq.com',
url='https://github.com/shibing624/wordrank',
license="Apache 2.0",
zip_safe=False,
python_requires='>=3.5',
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Text Processing :: Linguistic',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
keywords='wordrank,term weighting,textrank,word rank,wordweight',
install_requires=[
"loguru",
"jieba>=0.39",
"pypinyin",
"numpy"
"six",
"scikit-learn",
],
packages=find_packages(exclude=['tests']),
package_dir={'wordrank': 'wordrank'},
package_data={'wordrank': ['*.*', 'data/*', '../extra_data/*.*', ]}
)