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
预期中应该讲整个句子作为一个词,将源码 ltp.algorithms.Trie 的 maximum_forward_matching 方法中的代码 while end <= text_len and curr_len < max_len: 修改为 while end <= text_len and curr_len <= max_len 则可以正确切分。
即将 < 修改为 <=
不清楚是作者故意这么设计的,还是一个小 bug?
另外,LTP4 是真的好用,永远滴神。
The text was updated successfully, but these errors were encountered:
ltp version: 4.1.1
输出:
([['跟', '谁', '学']], {'word_cls': tensor([[[-4.0777e-01, 4.0268e-01, 1.2457e-01, -1.5838e-01, 6.1400e-03 ...
预期中应该讲整个句子作为一个词,将源码
ltp.algorithms.Trie
的maximum_forward_matching
方法中的代码while end <= text_len and curr_len < max_len:
修改为while end <= text_len and curr_len <= max_len
则可以正确切分。即将 < 修改为 <=
不清楚是作者故意这么设计的,还是一个小 bug?
The text was updated successfully, but these errors were encountered: