You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
anaphoraオプションを付けると複数文の結果を見ようとするのか前の入力内容をflushしないで延々と関係を見に行くケースがある
そのため同じ単語を多く含む文章郡を何度か投入するとEntity "%s" mentiond too many times!が発生する
from pyknp import KNP
import traceback
knp = KNP(option='-tab -anaphora') # Default is JUMAN++. If you use JUMAN, use KNP(jumanpp=False)
ll = ["硫酸を流す","硫酸から流す","硫酸から飛び降りる"]
for i in range(0,100):
for j in ll:
try:
result = knp.parse(j)
except:
print(traceback.format_exc())
pass
Entity "硫酸" mentiond too many times!
JUMAN++ 1.01
knp 4.19
pyknp 0.6 ku-nlp/pyknp#55
The text was updated successfully, but these errors were encountered:
anaphoraオプションを付けると複数文の結果を見ようとするのか前の入力内容をflushしないで延々と関係を見に行くケースがある
そのため同じ単語を多く含む文章郡を何度か投入するとEntity "%s" mentiond too many times!が発生する
Entity "硫酸" mentiond too many times!
JUMAN++ 1.01
knp 4.19
pyknp 0.6
ku-nlp/pyknp#55
The text was updated successfully, but these errors were encountered: