-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
48 lines (40 loc) · 2.29 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
#!/usr/bin/env python
# noqa: D100
from setuptools import find_packages, setup
# Get version without importing, which avoids dependency issues
exec(compile(open('rstfinder/version.py').read(), 'rstfinder/version.py', 'exec'))
# (we use the above instead of execfile for Python 3.x compatibility)
def readme():
"""Return README.md from disk."""
with open('README.md') as f:
return f.read()
def requirements(): # noqa: D103
pass
setup(name='rstfinder',
version=__version__,
description=('A discourse parser and segmenter for use with the '
'Rhetorical Structure Theory Discourse Treebank '
'(https://catalog.ldc.upenn.edu/LDC2002T07).'),
long_description=readme(),
keywords='discourse parsing rst',
url='http://github.com/EducationalTestingService/rstfinder',
author='Michael Heilman',
maintainer='Nitin Madnani',
maintainer_email='[email protected]',
license='MIT',
packages=find_packages(exclude=['tests']),
include_package_data=True,
entry_points={'console_scripts': ['segment_document = rstfinder.segment_document:main',
'tune_segmentation_model = rstfinder.tune_segmentation_model:main',
'rst_parse = rstfinder.rst_parse:main',
'tune_rst_parser = rstfinder.tune_rst_parser:main',
'convert_rst_discourse_tb = rstfinder.convert_rst_discourse_tb:main',
'make_traindev_split = rstfinder.make_traindev_split:main',
'rst_eval = rstfinder.rst_eval:main',
'extract_segmentation_features = rstfinder.extract_segmentation_features:main',
'rst_parse_batch = rstfinder.rst_parse_batch:main',
'compute_bootstrap_from_predictions = rstfinder.utils.compute_bootstrap_from_predictions:main',
'try_head_rules = rstfinder.utils.try_head_rules:main',
'visualize_rst_tree = rstfinder.utils.visualize_rst_tree:main']},
install_requires=requirements(),
zip_safe=False)