8000 字符串中的数字和字母关键字无法识别 · Issue #20 · toolgood/ToolGood.Words · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

字符串中的数字和字母关键字无法识别 #20

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

Closed
DHclly opened this issue Jun 6, 2019 · 2 comments
Closed

字符串中的数字和字母关键字无法识别 #20

DHclly opened this issue Jun 6, 2019 · 2 comments

Comments

@DHclly
Copy link
DHclly commented Jun 6, 2019
string text = "A10021003吃饭";
var keywords = new string[] { "1","A","2","0","吃"};
var iws = new IllegalWordsSearch();
var ss = new StringSearch();
var sse = new StringSearchEx();

iws.SetKeywords(keywords);
iws.UseIgnoreCase = true;
iws.UseDBCcaseConverter = true;
var iwsFirst = iws.FindFirst(text);
var iwsAll = iws.FindAll(text);

ss.SetKeywords(keywords);
var ssFirst = iws.FindFirst(text);
var ssAll = iws.FindAll(text);

sse.SetKeywords(keywords);
var sseFirst = iws.FindFirst(text);
var sseAll = iws.FindAll(text);

为什么上述代码的结果会如下所示,数字和字母没有识别出来,汉字关键字是吃,怎么识别出是吃饭?

使用的库版本是2.3.3

image

@toolgood
Copy link
Owner
toolgood commented Jun 6, 2019

谢谢你的支持,这几天我会去改一下代码

toolgood added a commit that referenced this issue Jun 6, 2019
@toolgood
Copy link
Owner
toolgood commented Jun 6, 2019

谢谢。这个问题已解决。

@toolgood toolgood closed this as completed Jun 6, 2019
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
0