Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异常case讨论 #2

Open
zj611 opened this issue Jun 15, 2023 · 1 comment
Open

异常case讨论 #2

zj611 opened this issue Jun 15, 2023 · 1 comment

Comments

@zj611
Copy link

zj611 commented Jun 15, 2023

测试用例:

Text1 = "外国人是好客人民"

敏感词用例:

[{"word":"好客","rank":2},{"word":"客人","rank":2},{"word":"外国人","rank":2},{"word":"国人","rank":2}]

运行结果:

    word_test.go:31: &{StartP:0 EndP:2 Word:外国人 Rank:2} 
    word_test.go:31: &{StartP:4 EndP:5 Word:好客 Rank:2} 
    word_test.go:31: &{StartP:5 EndP:6 Word:客人 Rank:2} 

"国人"这个敏感词没有被命中,在中文语义里,“国人”和“外国人”是截然不同的语义,这样在过滤时容易跑掉这种类型

@runtu666
Copy link
Owner

@zj611 谢谢 是的 这里有点问题,回头我优化一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants