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
If one token's both stem and every element in its syns is not in vword, this snippet will raise KeyError because we cannot find the corresponding impact of this token.
Maybe this function assume that every token's stem or its thesaurus is in the dict vword.
It can be fixed by adding try...except... or add {this token's stem: 0} into vword.
Thank you for your replying!
The text was updated successfully, but these errors were encountered:
codematcher-demo/parsing.py
Line 69 in ed5a300
Hello!
If one token's both stem and every element in its
syns
is not invword
, this snippet will raiseKeyError
because we cannot find the correspondingimpact
of this token.Maybe this function assume that every token's stem or its thesaurus is in the dict
vword
.It can be fixed by adding
try...except...
or add{this token's stem: 0}
intovword
.Thank you for your replying!
The text was updated successfully, but these errors were encountered: