mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-29 01:01:24 +00:00
Nothing
This commit is contained in:
@ -38,7 +38,7 @@ def _processor(sentence, segmentation):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
flag = seg.flag
|
flag = seg.flag
|
||||||
score_dict = {'v': -10, 'l': -8, 'n': -5, 'p': -3, 't': +3, 'other': -1}
|
score_dict = {'v': -10, 'l': -8, 'n': -5, 'p': -3, 'y': 0, 't': +3, 'other': -1}
|
||||||
for k, v in score_dict.items():
|
for k, v in score_dict.items():
|
||||||
if flag.startswith(k):
|
if flag.startswith(k):
|
||||||
possibility += v
|
possibility += v
|
||||||
|
Reference in New Issue
Block a user