Package org.lionsoul.jcseg
Class SynonymsEntry
- java.lang.Object
-
- org.lionsoul.jcseg.SynonymsEntry
-
public class SynonymsEntry extends Object
Synonyms words entry class- Author:
- chenxin
-
-
Constructor Summary
Constructors Constructor Description SynonymsEntry()SynonymsEntry(IWord rootWord)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(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 setList<IWord>getList()return the synonyms listIWordgetRootWord()return the base wordvoidsetRootWord(IWord rootWord)intsize()
-
-
-
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)
-
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-
-
-