Package com.vivoka.vsdk.asr.utils
Class AsrResultTag
java.lang.Object
com.vivoka.vsdk.asr.utils.AsrResultItem
com.vivoka.vsdk.asr.utils.AsrResultTag
Represents a tag item that can group terminals and/or other tags.
-
Field Summary
FieldsModifier and TypeFieldDescriptionNested items within this tag, forming a tree structure.Name of the tag, which can identify the semantic meaning or structure (e.g.Fields inherited from class com.vivoka.vsdk.asr.utils.AsrResultItem
beginTime, confidence, endTime, type -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
Name of the tag, which can identify the semantic meaning or structure (e.g. "person", "location"). -
items
Nested items within this tag, forming a tree structure. Can include both terminal and tag items.
-
-
Constructor Details
-
AsrResultTag
public AsrResultTag()Constructs an AsrResultTag object with empty values.
-
-
Method Details
-
getText
Get the text representation of this tag. This concatenates the orthography of all terminals and tags within this tag.- Returns:
- A string representing the text of this tag.
-
getTags
Get all tags specific to this tag. This recursively collects all tags within the hierarchy of items.- Returns:
- A list of all AsrResultTag objects found within this tag.
-
getTerminals
Get all terminals specific to this tag. This recursively collects all terminals within the hierarchy of items.- Returns:
- A list of all AsrResultTerminal objects found within this tag.
-
toString
- Specified by:
toStringin classAsrResultItem
-