forked from shibing624/pycorrector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (49 loc) · 1.81 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
# -*- coding: utf-8 -*-
# Author: XuMing <[email protected]>
# Brief:
from __future__ import print_function
import sys
from setuptools import setup, find_packages
from pycorrector import __version__
if sys.version_info < (3,):
sys.exit('Sorry, Python3 is required for pycorrector.')
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
with open('requirements.txt') as f:
reqs = f.read()
setup(
name='pycorrector',
version=__version__,
description='Chinese Text Error corrector',
long_description=readme,
long_description_content_type='text/markdown',
author='XuMing',
author_email='[email protected]',
url='https://github.com/shibing624/corrector',
license="Apache 2.0",
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.5',
'Programming Language :: Python :: 3.6',
'Topic :: Text Processing',
'Topic :: Text Processing :: Indexing',
'Topic :: Text Processing :: Linguistic',
],
keywords='NLP,correction,Chinese error corrector,corrector',
install_requires=reqs.strip().split('\n'),
packages=find_packages(exclude=['tests']),
package_dir={'pycorrector': 'pycorrector'},
package_data={
'pycorrector': ['*.*', 'LICENSE', 'README.*', 'data/*', 'data/kenlm/people_chars_lm.klm', 'utils/*',
'bert/*', 'deep_context/*', 'rnn_attention/*', 'rnn_crf/*', 'rnn_lm/*', 'seq2seq/*',
'seq2seq_attention/*', 'transformer/*'],
},
test_suite='tests',
)