You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# A Python wrapper for the Java Stanford Core NLP tools
2
2
---------------------------
3
3
4
-
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.
4
+
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.
5
5
6
6
## Edited
7
7
* Update to Stanford CoreNLP v3.2.0
@@ -24,7 +24,7 @@ To use this program you must [download](http://nlp.stanford.edu/software/corenlp
24
24
25
25
In other words:
26
26
27
-
sudo pip install jsonrpclib pexpect unidecode # unidecode is optional
27
+
sudo pip install pexpect unidecode jsonrpclib # jsonrpclib is optional
@@ -120,9 +120,9 @@ Not to use JSON-RPC, load the module instead:
120
120
from corenlp import StanfordCoreNLP
121
121
corenlp_dir = "stanford-corenlp-full-2013-06-20/"
122
122
corenlp = StanfordCoreNLP(corenlp_dir) # wait a few minutes...
123
-
corenlp.parse("Parse it")
123
+
corenlp.raw_parse("Parse it")
124
124
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:
125
+
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:
126
126
127
127
from corenlp import batch_parse
128
128
corenlp_dir = "stanford-corenlp-full-2013-06-20/"
@@ -134,7 +134,7 @@ The function uses XML output feature of Stanford CoreNLP, and you can take all i
0 commit comments