public class Relation
extends java.lang.Object
Item
s and their associated children. A
relation has a name and a list of items, and is added to an
Utterance
via an USEnglishTokenizer
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOKEN
Name of the relation that contains tokens from the original input text.
|
static java.lang.String |
WORD
Name of the relation that contains the normalized version of the
original input text.
|
Modifier and Type | Method and Description |
---|---|
Item |
appendItem()
Adds a new item to this relation.
|
Item |
appendItem(Item originalItem)
Adds a new item to this relation.
|
Item |
getHead()
Gets the head of the item list.
|
java.lang.String |
getName()
Retrieves the name of this Relation.
|
Item |
getTail()
Gets the tail of the item list.
|
Utterance |
getUtterance()
Returns the utterance that contains this relation.
|
public static final java.lang.String TOKEN
public static final java.lang.String WORD
public java.lang.String getName()
public Item getHead()
public Item getTail()
public Item appendItem()
public Item appendItem(Item originalItem)
originalItem
- the ItemContents that will be shared by the new itempublic Utterance getUtterance()