Class KeyphraseExtractor

    • Field Detail

      • seg

        protected ISegment seg
        the ISegment object
    • Constructor Detail

      • KeyphraseExtractor

        public KeyphraseExtractor​(ISegment seg)
        construct method
        Parameters:
        seg -
    • Method Detail

      • filter

        protected boolean filter​(IWord word)
        word item filter
        Parameters:
        word -
        Returns:
        boolean
      • getKeyphraseFromString

        public List<String> getKeyphraseFromString​(String doc)
                                            throws IOException
        get the keyphrase list from a string
        Parameters:
        doc -
        Returns:
        List[]
        Throws:
        IOException
      • getKeyphraseFromFile

        public List<String> getKeyphraseFromFile​(String file)
                                          throws IOException
        get the keyphrase list from a file
        Parameters:
        file -
        Returns:
        List[]
        Throws:
        IOException
      • setSeg

        public void setSeg​(ISegment seg)