com.hankcs.hanlp.phrase
类 MutualInformationEntropyPhraseExtractor
java.lang.Object
com.hankcs.hanlp.phrase.MutualInformationEntropyPhraseExtractor
- 所有已实现的接口:
- IPhraseExtractor
public class MutualInformationEntropyPhraseExtractor
- extends Object
- implements IPhraseExtractor
利用互信息和左右熵的短语提取器
- 作者:
- hankcs
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutualInformationEntropyPhraseExtractor
public MutualInformationEntropyPhraseExtractor()
extractPhrase
public List<String> extractPhrase(String text,
int size)
- 从接口
IPhraseExtractor 复制的描述
- 提取短语
- 指定者:
- 接口
IPhraseExtractor 中的 extractPhrase
- 参数:
text - 文本size - 希望提取前几个短语
- 返回:
- 短语列表
extract
public static List<String> extract(String text,
int size)
- 一句话提取
- 参数:
text - size -
- 返回:
Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.