edu.stanford.nlp.parser.lexparser
Class IntTaggedWord
java.lang.Object
edu.stanford.nlp.parser.lexparser.IntTaggedWord
- All Implemented Interfaces:
- Serializable, Comparable
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,
char splitChar)
- Creates an IntTaggedWord given by the String representation
of the form |
IntTaggedWord
public IntTaggedWord(String wordString,
String tagString)
- Creates an IntTaggedWord given by the tagString and wordString
tag
public int tag()
word
public int word()
wordString
public String wordString()
tagString
public String tagString()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
toLexicalEntry
public String toLexicalEntry()
toString
public String toString()
- Overrides:
toString
in class Object
toString
public String toString(String arg)
toTaggedWord
public TaggedWord toTaggedWord()
Stanford NLP Group