Exemple #1
0
 /** 判断是否为停止词 */
 public static boolean isStopword(char[] text, int off, int len) {
   Node node = INSTANCE.getInstance().stopWords.getNode(text, off, len);
   return node != null && node.accept();
 }
Exemple #2
0
 /** 单例, 通过该接口获取实例对象 */
 public static StopWords instance() {
   return INSTANCE.getInstance();
 }