org.encog.nlp.lexicon.data
Class Word
java.lang.Object
org.encog.util.orm.DataObject
org.encog.nlp.lexicon.data.Word
- All Implemented Interfaces:
- java.io.Serializable
public class Word
- extends DataObject
Note: This class is part of the Encog Natural Language Processing(NLP)
package. This package is still under heavy construction, and will not
be considered stable until Encog 3.0.
- Author:
- jheaton
- See Also:
- Serialized Form
|
Constructor Summary |
Word()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Word
public Word()
getText
public java.lang.String getText()
setText
public void setText(java.lang.String text)
length
public int length()
validate
public void validate()
- Description copied from class:
DataObject
- Validate this object.
- Specified by:
validate in class DataObject
endsWith
public boolean endsWith(java.lang.String value)
startsWith
public boolean startsWith(java.lang.String value)
getLemma
public Lemma getLemma()
setLemma
public void setLemma(Lemma lemma)
isWordOfType
public boolean isWordOfType(WordType type)
getTypes
public java.util.Collection<WordTypePossibility> getTypes()
getGutenbergCount
public int getGutenbergCount()
setGutenbergCount
public void setGutenbergCount(int gutenbergCount)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hasType
public boolean hasType(WordType wordType)
getFixes
public java.util.Collection<Fix> getFixes()
hasFix
public boolean hasFix(Fix fix)
getWikiCount
public int getWikiCount()
setWikiCount
public void setWikiCount(int wikiCount)