edu.stanford.nlp.parser.lexparser
Class IntTaggedWord

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.IntTaggedWord
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class IntTaggedWord
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

See Also:
Serialized Form

Field Summary
static java.lang.String ANY
           
static java.lang.String STOP
           
 short tag
           
 int word
           
 
Constructor Summary
IntTaggedWord(int word, int tag)
           
IntTaggedWord(java.lang.String s, char splitChar)
          Creates an IntTaggedWord given by the String representation of the form |
IntTaggedWord(java.lang.String tagString, java.lang.String wordString)
          Creates an IntTaggedWord given by the tagString and wordString
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 int tag()
           
 java.lang.String tagString()
           
 java.lang.String toLexicalEntry()
           
 java.lang.String toString()
           
 TaggedWord toTaggedWord()
           
 int word()
           
 java.lang.String wordString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

word

public int word

tag

public short tag

ANY

public static final java.lang.String ANY
See Also:
Constant Field Values

STOP

public static final java.lang.String STOP
See Also:
Constant Field Values
Constructor Detail

IntTaggedWord

public IntTaggedWord(int word,
                     int tag)

IntTaggedWord

public IntTaggedWord(java.lang.String s,
                     char splitChar)
Creates an IntTaggedWord given by the String representation of the form |


IntTaggedWord

public IntTaggedWord(java.lang.String tagString,
                     java.lang.String wordString)
Creates an IntTaggedWord given by the tagString and wordString

Method Detail

tag

public int tag()

word

public int word()

wordString

public java.lang.String wordString()

tagString

public java.lang.String tagString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

toLexicalEntry

public java.lang.String toLexicalEntry()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toTaggedWord

public TaggedWord toTaggedWord()