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)
           
 
Method Summary
 boolean equals(Object o)
           
 int getTagId()
           
 int getWordId()
           
 int hashCode()
           
 boolean isSimple()
           
 void print()
           
 void set(int wordId, int tagId)
           
 String toNameString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Word

public Word()

Word

public Word(int wordId,
            int tagId)

Word

public Word(int wordId)
Method Detail

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