Source

corenlp-python / README.md

Diff from to

README.md

 # A Python wrapper for the Java Stanford Core NLP tools
 ---------------------------
 
-This is a fork of Dustin Smith's [stanford-corenlp-python](https://github.com/dasmith/stanford-corenlp-python). A Python interface to [Stanford CoreNLP](http://nlp.stanford.edu/software/corenlp.shtml). It can either be python package, or run as a JSON-RPC server.
+This is a fork of Dustin Smith's [stanford-corenlp-python](https://github.com/dasmith/stanford-corenlp-python), a Python interface to [Stanford CoreNLP](http://nlp.stanford.edu/software/corenlp.shtml). It can either use as python package, or run as a JSON-RPC server.
 
 ## Edited
    * Update to Stanford CoreNLP v3.2.0
 
 In other words:
 
-    sudo pip install jsonrpclib pexpect unidecode   # unidecode is optional
+    sudo pip install pexpect unidecode jsonrpclib   # jsonrpclib is optional
     git clone https://bitbucket.org/torotoki/corenlp-python.git
 	  cd corenlp-python
     wget http://nlp.stanford.edu/software/stanford-corenlp-full-2013-06-20.zip
     from corenlp import StanfordCoreNLP
     corenlp_dir = "stanford-corenlp-full-2013-06-20/"
     corenlp = StanfordCoreNLP(corenlp_dir)  # wait a few minutes...
-    corenlp.parse("Parse it")
+    corenlp.raw_parse("Parse it")
 
-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:
+If you need to parse long texts (more than 30-50 sentences), you must 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_parse
     corenlp_dir = "stanford-corenlp-full-2013-06-20/"
 
     parsed = batch_parse(raw_text_directory, corenlp_dir, raw_output=True)
 
-(note: The function requires xmltodict now, you must install it by `sudo pip install xmltodict`)
+(note: The function requires xmltodict now, you should install it by `sudo pip install xmltodict`)
 
 ## Developer
    * Hiroyoshi Komatsu [hiroyoshi.komat@gmail.com]
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.