com.hankcs.hanlp.algoritm.ahocorasick.trie
类 TrieConfig

java.lang.Object
  继承者 com.hankcs.hanlp.algoritm.ahocorasick.trie.TrieConfig

public class TrieConfig
extends Object

配置


字段摘要
 boolean remainLongest
          只保留最长匹配
 
构造方法摘要
TrieConfig()
           
 
方法摘要
 boolean isAllowOverlaps()
          是否允许重叠
 void setAllowOverlaps(boolean allowOverlaps)
          设置是否允许重叠
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

remainLongest

public boolean remainLongest
只保留最长匹配

构造方法详细信息

TrieConfig

public TrieConfig()
方法详细信息

isAllowOverlaps

public boolean isAllowOverlaps()
是否允许重叠

返回:

setAllowOverlaps

public void setAllowOverlaps(boolean allowOverlaps)
设置是否允许重叠

参数:
allowOverlaps -


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.