8000 Fix README · kowey/stanford-corenlp-python@ad50d92 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad50d92

Browse files
committed
Fix README
1 parent 6fd8101 commit ad50d92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ To use it in a regular script or to edit/debug it (because errors via RPC are op
122122
corenlp = StanfordCoreNLP(corenlp_dir) # wait a few minutes...
123123
corenlp.parse("Parse it")
124124

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:
126126

127127
from corenlp import batch_process
128128
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
130130

131131
## Developer
132132
* Hiroyoshi Komatsu [hiroyoshi.komat@gmail.com]

0 commit comments

Comments
 (0)
0