8000 Lower timeout to 15 seconds. · cytora/stanford-corenlp-python@12e4f97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 12e4f97

Browse files
committed
Lower timeout to 15 seconds.
1 parent 701c37b commit 12e4f97

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

corenlp/corenlp.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,8 @@ def clean_up():
416416

417417
self.corenlp.sendline(to_send)
418418

419-
# How much time should we give the parser to parse it?
420-
# the idea here is that you increase the timeout as a
421-
# function of the text's length.
422-
# max_expected_time = max(5.0, 3 + len(to_send) / 5.0)
423-
max_expected_time = max(300.0, len(to_send) / 3.0)
419+
# set fixed timeout assuming our splitting procedure
420+
max_expected_time = 15
424421

425422
# repeated_input = self.corenlp.except("\n") # confirm it
426423
t = self.corenlp.expect(["\nNLP> ", "Negative", "Positive",

0 commit comments

Comments
 (0)
0