forked from pltrdy/rouge
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
50 lines (42 loc) · 1.48 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
import os
import re
from setuptools import setup, find_packages
def get_version():
path = os.path.join(os.path.dirname(__file__), 'rouge_chinese', '__init__.py')
with open(path, 'r') as f:
content = f.read()
m = re.search(r'__version__\s*=\s*"(.+)"', content)
assert m is not None
return m.group(1)
def long_description():
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
return f.read()
version = get_version()
setup(
name="rouge_chinese",
version=version,
description="Python ROUGE Score Implementation for Chinese Language Task (official rouge score)",
url="https://github.com/Isaac-JL-Chen/rouge_chinese.git",
author="Isaac-JL-Chen",
author_email="chn.jianlin@gmail.com",
keywords=["NLP", "natural language processing", "metric", "rouge", "algorithm",
"computational linguistics", "summarization","chinese"],
packages=find_packages(),
classifiers=[
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Topic :: Text Processing :: Linguistic"
],
license="LICENCE.txt",
long_description=long_description(),
long_description_content_type='text/markdown',
test_suite="nose.collector",
tests_require=['nose'],
install_requires=['six'],
entry_points={
'console_scripts': [
'rouge_chinese=bin.rouge_cmd:main'
]
}
)