8000 Distribution includes README.md and LICENSE · relwell/stanford-corenlp-python@a78f131 · GitHub
[go: up one dir, main page]

Skip to content

Commit a78f131

Browse files
committed
Distribution includes README.md and LICENSE
1 parent 39172a1 commit a78f131

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

MANIFEST

Lines changed: 0 additions & 7 deletions
This file was deleted.

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include LICENSE
2+
include README.md

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ Not to use JSON-RPC, load the module instead:
122122
corenlp = StanfordCoreNLP(corenlp_dir) # wait a few minutes...
123123
corenlp.parse("Parse it")
124124

125-
If you need to parse longs texts (more than 30-50 sentences), you have to use a batch_parse() function. It reads text files from input directory and returns a generator object of dictionaries parsed each file results:
125+
If you need to parse long texts (more than 30-50 sentences), you have to use a batch_parse() function. It reads text files from input directory and returns a generator object of dictionaries parsed each file results:
126126

127127
from corenlp import batch_process
128128
raw_text_directory = "sample_raw_text/"
129129
parsed = batch_process(raw_text_directory) # It returns a generator object
130-
print parsed #=> {'coref': ..., 'sentences': ..., 'file_name': 'new_sample.txt'}
130+
print parsed #=> [{'coref': ..., 'sentences': ..., 'file_name': 'new_sample.txt'}]
131131

132132
## Developer
133133
* Hiroyoshi Komatsu [hiroyoshi.komat@gmail.com]

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
AUTHOR = "Hiroyoshi Komatsu"
88
AUTHOR_EMAIL = "hiroyoshi.komat@gmail.com"
99
URL = "https://bitbucket.org/torotoki/corenlp-python"
10-
VERSION = "1.1.0"
10+
VERSION = "1.1.1"
1111

1212
# Utility function to read the README file.
1313
# Used for the long_description. It's nice, because now 1) we have a top level
@@ -24,11 +24,17 @@ def read(fname):
2424
author=AUTHOR,
2525
author_email=AUTHOR_EMAIL,
2626
url=URL,
27+
include_package_data=True,
2728
packages=['corenlp'],
2829
package_dir = {'corenlp': 'corenlp'},
2930
package_data = {
3031
"corenlp": ["default.properties"]
3132
},
33+
install_requires=[
34+
"pexpect >= 2.4",
35+
"unidecode >= 0.04.12",
36+
"xmltodict >= 0.4.6",
37+
],
3238
# data_files = [
3339
# ('corenlp', ["default.properties"]),
3440
# ],

0 commit comments

Comments
 (0)
0