Class SynonymsEntry


  • public class SynonymsEntry
    extends Object
    Synonyms words entry class
    Author:
    chenxin
    • Field Detail

      • rootWord

        protected IWord rootWord
        the Synonyms root word
    • Constructor Detail

      • SynonymsEntry

        public SynonymsEntry()
      • SynonymsEntry

        public SynonymsEntry​(IWord rootWord)
    • Method Detail

      • getRootWord

        public IWord getRootWord()
        return the base word
        Returns:
        IWord
      • setRootWord

        public void setRootWord​(IWord rootWord)
      • getList

        public List<IWord> getList()
        return the synonyms list
        Returns:
        List
      • size

        public int size()
      • add

        public void add​(IWord word)
        add a new synonyms word and the newly added word will extend the part of speech and the entity from the base word if there are not set
        Parameters:
        word -