|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.hankcs.hanlp.dictionary.stopword.CoreStopWordDictionary
public class CoreStopWordDictionary
核心停用词词典
| 字段摘要 | |
|---|---|
static Filter |
FILTER
核心停用词典的核心过滤器,词性属于名词、动词、副词、形容词,并且不在停用词表中才不会被过滤 |
| 构造方法摘要 | |
|---|---|
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)
是否应当去掉这个词 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static Filter FILTER
| 构造方法详细信息 |
|---|
public CoreStopWordDictionary()
| 方法详细信息 |
|---|
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 - 停用词
public static void apply(List<Term> termList)
termList -
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||