8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 701c37b commit 12e4f97Copy full SHA for 12e4f97
corenlp/corenlp.py
@@ -416,11 +416,8 @@ def clean_up():
416
417
self.corenlp.sendline(to_send)
418
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)
+ # set fixed timeout assuming our splitting procedure
+ max_expected_time = 15
424
425
# repeated_input = self.corenlp.except("\n") # confirm it
426
t = self.corenlp.expect(["\nNLP> ", "Negative", "Positive",
0 commit comments