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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -122,12 +122,12 @@ Not to use JSON-RPC, load the module instead:
122
122
corenlp = StanfordCoreNLP(corenlp_dir) # wait a few minutes...
123
123
corenlp.parse("Parse it")
124
124
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:
126
126
127
127
from corenlp import batch_process
128
128
raw_text_directory = "sample_raw_text/"
129
129
parsed = batch_process(raw_text_directory) # It returns a generator object
0 commit comments