edu.stanford.nlp.parser.lexparser
Class IntTaggedWord
java.lang.Object
edu.stanford.nlp.parser.lexparser.IntTaggedWord
- All Implemented Interfaces:
- Comparable, Serializable
- public class IntTaggedWord
- extends Object
- implements Serializable, Comparable
- See Also:
- Serialized Form
word
public int word
tag
public short tag
ANY
public static final String ANY
- See Also:
- Constant Field Values
STOP
public static final String STOP
- See Also:
- Constant Field Values
IntTaggedWord
public IntTaggedWord(int word,
int tag)
IntTaggedWord
public IntTaggedWord(String s)
throws Exception
- Creates an IntTaggedWord given by the String representation
of the form |
tag
public int tag()
word
public int word()
hashCode
public int hashCode()
equals
public boolean equals(Object o)
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
toString
public String toString()
toTaggedWord
public TaggedWord toTaggedWord()
Stanford NLP Group