Hiroyoshi Komatsu avatar Hiroyoshi Komatsu committed a78f131

Distribution includes README.md and LICENSE

Comments (0)

Files changed (4)

MANIFEST

-# file GENERATED by distutils, do NOT edit
-setup.py
-corenlp/__init__.py
-corenlp/client.py
-corenlp/corenlp.py
-corenlp/default.properties
-corenlp/progressbar.py
+include LICENSE
+include README.md
     corenlp = StanfordCoreNLP(corenlp_dir)  # wait a few minutes...
     corenlp.parse("Parse it")
 
-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:
+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:
 
     from corenlp import batch_process
     raw_text_directory = "sample_raw_text/"
     parsed = batch_process(raw_text_directory)  # It returns a generator object
-    print parsed  #=> {'coref': ..., 'sentences': ..., 'file_name': 'new_sample.txt'}
+    print parsed  #=> [{'coref': ..., 'sentences': ..., 'file_name': 'new_sample.txt'}]
 
 ## Developer
    * Hiroyoshi Komatsu [hiroyoshi.komat@gmail.com]
 AUTHOR = "Hiroyoshi Komatsu"
 AUTHOR_EMAIL = "hiroyoshi.komat@gmail.com"
 URL = "https://bitbucket.org/torotoki/corenlp-python"
-VERSION = "1.1.0"
+VERSION = "1.1.1"
 
 # Utility function to read the README file.
 # Used for the long_description.  It's nice, because now 1) we have a top level
     author=AUTHOR,
     author_email=AUTHOR_EMAIL,
     url=URL,
+    include_package_data=True,
     packages=['corenlp'],
     package_dir = {'corenlp': 'corenlp'},
     package_data = {
         "corenlp": ["default.properties"]
     },
+    install_requires=[
+        "pexpect >= 2.4",
+        "unidecode >= 0.04.12",
+        "xmltodict >= 0.4.6",
+    ],
     # data_files = [
     #     ('corenlp', ["default.properties"]),
     # ],
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.