Class TextRankKeyphraseExtractor


  • public class TextRankKeyphraseExtractor
    extends KeyphraseExtractor
    document key phrase extractor base on textRank algorithm
    Author:
    chenxin
    • Field Detail

      • keywordsNum

        protected int keywordsNum
      • maxIterateNum

        protected int maxIterateNum
      • windowSize

        protected int windowSize
      • autoMinLength

        protected int autoMinLength
        auto append the words with a length over the specified value as a phrase
      • maxWordsNum

        protected int maxWordsNum
        max phrase length
    • Constructor Detail

      • TextRankKeyphraseExtractor

        public TextRankKeyphraseExtractor​(ISegment seg)
    • Method Detail

      • getKeywordsNum

        public int getKeywordsNum()
      • setKeywordsNum

        public void setKeywordsNum​(int keywordsNum)
      • getMaxIterateNum

        public int getMaxIterateNum()
      • setMaxIterateNum

        public void setMaxIterateNum​(int maxIterateNum)
      • getWindowSize

        public int getWindowSize()
      • setWindowSize

        public void setWindowSize​(int windowSize)
      • getAutoMinLength

        public int getAutoMinLength()
      • setAutoMinLength

        public void setAutoMinLength​(int autoMinLength)
      • getMaxWordsNum

        public int getMaxWordsNum()
      • setMaxWordsNum

        public void setMaxWordsNum​(int maxPhraseLength)