Class FSTUtil
java.lang.Object
cn.net.pap.common.datastructure.fst.FSTUtil
工具类与测试方法
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription最大匹配static List<ValueLocationDTO>
maxMatchLocation
(String text, FST dict) 最大匹配,并且额外返回了字典在文本中所处的位置。
-
Constructor Details
-
FSTUtil
public FSTUtil()
-
-
Method Details
-
maxMatch
最大匹配- Parameters:
text
-dict
-- Returns:
-
maxMatchLocation
最大匹配,并且额外返回了字典在文本中所处的位置。- Parameters:
text
-dict
-- Returns:
-