8000 Adjust timeout · potatochip/corenlp-python@90d9988 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90d9988

Browse files
committed
Adjust timeout
1 parent d4a338c commit 90d9988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corenlp/corenlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def clean_up():
246246
# the idea here is that you increase the timeout as a
247247
# function of the text's length.
248248
# max_expected_time = max(5.0, 3 + len(to_send) / 5.0)
249-
max_expected_time = max(300.0, len(to_send) / 2)
249+
max_expected_time = max(300.0, len(to_send) / 3.0)
250250

251251
# repeated_input = self.corenlp.except("\n") # confirm it
252252
t = self.corenlp.expect(["\nNLP> ", pexpect.TIMEOUT, pexpect.EOF],

0 commit comments

Comments
 (0)
0