com.hankcs.hanlp.summary
类 KeywordExtractor

java.lang.Object
  继承者 com.hankcs.hanlp.summary.KeywordExtractor
直接已知子类:
TextRankKeyword

public class KeywordExtractor
extends Object

提取关键词的基类

作者:
hankcs

构造方法摘要
KeywordExtractor()
           
 
方法摘要
 KeywordExtractor setSegment(Segment segment)
          设置关键词提取器使用的分词器
 boolean shouldInclude(Term term)
          是否应当将这个term纳入计算,词性属于名词、动词、副词、形容词
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

KeywordExtractor

public KeywordExtractor()
方法详细信息

shouldInclude

public boolean shouldInclude(Term term)
是否应当将这个term纳入计算,词性属于名词、动词、副词、形容词

参数:
term -
返回:
是否应当

setSegment

public KeywordExtractor setSegment(Segment segment)
设置关键词提取器使用的分词器

参数:
segment - 任何开启了词性标注的分词器
返回:
自己


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.