edu.stanford.nlp.parser.lexparser
Class IntTaggedWord

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

public class IntTaggedWord
extends Object
implements Serializable, Comparable

See Also:
Serialized Form

Field Summary
static String ANY
           
static String STOP
           
 short tag
           
 int word
           
 
Constructor Summary
IntTaggedWord(int word, int tag)
           
IntTaggedWord(String s)
          Creates an IntTaggedWord given by the String representation of the form |
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 int hashCode()
           
 int tag()
           
 String toString()
           
 TaggedWord toTaggedWord()
           
 int word()
           
 
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 String ANY
See Also:
Constant Field Values

STOP

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

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 |

Method Detail

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