public class CoreStopWordDictionary extends Object
| 构造器和说明 |
|---|
CoreStopWordDictionary() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
add(String stopWord)
加入停用词到停用词词典中
|
static void |
apply(List<Term> termList)
对分词结果应用过滤
|
static boolean |
contains(String key) |
static boolean |
remove(String stopWord)
从停用词词典中删除停用词
|
static boolean |
shouldInclude(Term term)
是否应当将这个term纳入计算
|
static boolean |
shouldRemove(Term term)
是否应当去掉这个词
|
public static Filter FILTER
public static boolean contains(String key)
public static boolean shouldInclude(Term term)
term - public static boolean shouldRemove(Term term)
term - 词public static boolean add(String stopWord)
stopWord - 停用词public static boolean remove(String stopWord)
stopWord - 停用词Copyright © 2014–2017 码农场. All rights reserved.