edu.stanford.nlp.parser.lexparser
Class IntTaggedWord

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

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, char splitChar)
          Creates an IntTaggedWord given by the String representation of the form |
IntTaggedWord(String wordString, String tagString)
          Creates an IntTaggedWord given by the tagString and wordString
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 int hashCode()
           
 int tag()
           
 String tagString()
           
 String toLexicalEntry()
           
 String toString()
           
 String toString(String arg)
           
 TaggedWord toTaggedWord()
           
 int word()
           
 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 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,
                     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

Method Detail

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