We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
测试用例:
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}
"国人"这个敏感词没有被命中,在中文语义里,“国人”和“外国人”是截然不同的语义,这样在过滤时容易跑掉这种类型
The text was updated successfully, but these errors were encountered:
@zj611 谢谢 是的 这里有点问题,回头我优化一下
Sorry, something went wrong.
No branches or pull requests
测试用例:
敏感词用例:
运行结果:
"国人"这个敏感词没有被命中,在中文语义里,“国人”和“外国人”是截然不同的语义,这样在过滤时容易跑掉这种类型
The text was updated successfully, but these errors were encountered: