We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2068b01 commit 450e5d1Copy full SHA for 450e5d1
tests/processors/test_knp.py
@@ -82,7 +82,7 @@ def test_thread_safe() -> None:
82
texts = ["外国人参政権", "望遠鏡で泳いでいる少女を見た。", "エネルギーを素敵にENEOS"]
83
texts *= 10
84
with concurrent.futures.ThreadPoolExecutor() as executor:
85
- futures = [executor.submit(knp.apply_to_sentence, text) for text in texts]
+ futures = [executor.submit(knp.apply_to_sentence, text, timeout=60) for text in texts]
86
for i, future in enumerate(futures):
87
sentence = future.result()
88
assert sentence.text == texts[i]
0 commit comments