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,11 +122,11 @@ To use it in a regular script or to edit/debug it (because errors via RPC are op
122
122
corenlp = StanfordCoreNLP(corenlp_dir) # wait a few minutes...
123
123
corenlp.parse("Parse it")
124
124
125
-
If you need longs texts (more than 30-50 sentences), you have to use a batch_parse function. It reads text files from input directory and returns generator object of parsed each file:
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 that parsed each file results:
126
126
127
127
from corenlp import batch_process
128
128
raw_text_directory = "sample_raw_text/"
129
-
batch_process(raw_text_directory) # It returns a generator object of each file
129
+
batch_process(raw_text_directory) # It returns a generator object
0 commit comments