public class IntTaggedWord extends Object implements Serializable, Comparable<IntTaggedWord>
Modifier and Type | Field and Description |
---|---|
static String |
ANY |
static int |
ANY_TAG_INT |
static int |
ANY_WORD_INT |
static String |
STOP |
static int |
STOP_TAG_INT |
static int |
STOP_WORD_INT |
short |
tag |
int |
word |
Constructor and Description |
---|
IntTaggedWord(int word,
int tag) |
IntTaggedWord(String s,
char splitChar,
Index<String> wordIndex,
Index<String> tagIndex)
Creates an IntTaggedWord given by the String representation
of the form <word>|<tag*gt;
|
IntTaggedWord(String wordString,
String tagString,
Index<String> wordIndex,
Index<String> tagIndex)
Creates an IntTaggedWord given by the tagString and wordString
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IntTaggedWord that) |
boolean |
equals(Object o) |
int |
hashCode() |
int |
tag() |
String |
tagString(Index<String> tagIndex) |
String |
toLexicalEntry(Index<String> wordIndex,
Index<String> tagIndex) |
String |
toString() |
String |
toString(Index<String> wordIndex,
Index<String> tagIndex) |
String |
toString(String arg,
Index<String> wordIndex,
Index<String> tagIndex) |
TaggedWord |
toTaggedWord(Index<String> wordIndex,
Index<String> tagIndex) |
int |
word() |
String |
wordString(Index<String> wordIndex) |
public static final int ANY_WORD_INT
public static final int ANY_TAG_INT
public static final int STOP_WORD_INT
public static final int STOP_TAG_INT
public static final String ANY
public static final String STOP
public final int word
public final short tag
public IntTaggedWord(int word, int tag)
public IntTaggedWord(String s, char splitChar, Index<String> wordIndex, Index<String> tagIndex)
public int tag()
public int word()
public int compareTo(IntTaggedWord that)
compareTo
in interface Comparable<IntTaggedWord>
public TaggedWord toTaggedWord(Index<String> wordIndex, Index<String> tagIndex)