com.hankcs.hanlp.phrase
类 MutualInformationEntropyPhraseExtractor

java.lang.Object
  继承者 com.hankcs.hanlp.phrase.MutualInformationEntropyPhraseExtractor
所有已实现的接口:
IPhraseExtractor

public class MutualInformationEntropyPhraseExtractor
extends Object
implements IPhraseExtractor

利用互信息和左右熵的短语提取器

作者:
hankcs

构造方法摘要
MutualInformationEntropyPhraseExtractor()
           
 
方法摘要
static List<String> extract(String text, int size)
          一句话提取
 List<String> extractPhrase(String text, int size)
          提取短语
 
从类 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 码农场. All rights reserved.