| 构造器和说明 |
|---|
AbstractZhMatch() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract boolean |
doMatch(String text,
List<String> chars,
ZhConvertCoreContext context) |
protected boolean |
isChinese(String charSeg,
ZhConvertCoreContext context)
是否为中文
|
protected boolean |
isSimple(String charSeg,
ZhConvertCoreContext context) |
protected boolean |
isTraditional(String charSeg,
ZhConvertCoreContext context) |
boolean |
match(String text,
ZhConvertCoreContext context)
匹配结果
|
protected abstract boolean doMatch(String text, List<String> chars, ZhConvertCoreContext context)
public boolean match(String text, ZhConvertCoreContext context)
ZhMatchprotected boolean isChinese(String charSeg, ZhConvertCoreContext context)
charSeg - 字符分割后context - 上下文protected boolean isTraditional(String charSeg, ZhConvertCoreContext context)
protected boolean isSimple(String charSeg, ZhConvertCoreContext context)
Copyright © 2025. All rights reserved.