edu.stanford.nlp.mt
Class Word
java.lang.Object
|
+--edu.stanford.nlp.mt.Word
- Direct Known Subclasses:
- WordEx
- public class Word
- extends Object
This class holds a word Id together with a tag Id
Later other fields might be added as well
Constructor Summary |
Word()
|
Word(int wordId)
|
Word(int wordId,
int tagId)
|
Word
public Word()
Word
public Word(int wordId,
int tagId)
Word
public Word(int wordId)
set
public void set(int wordId,
int tagId)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
isSimple
public boolean isSimple()
getWordId
public int getWordId()
getTagId
public int getTagId()
toString
public String toString()
- Overrides:
toString
in class Object
toNameString
public String toNameString()
print
public void print()
Stanford NLP Group