Class CachedUtterance
java.lang.Object
edu.tufts.hrilab.slug.parsing.cache.CachedUtterance
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CachedUtterance
Constructs a CachedUtterance object from its JSON representation.Retrieves a list of bindings represented as maps of Variable to Symbol.Retrieves a list of Terms representing indirect semantics.Retrieves the Predicate representing semantics.getType()
Retrieves the UtteranceType based on the stored String value.toJSON()
Converts the object to its JSON representation.
-
Field Details
-
words
-
semantics
-
indirectSemantics
-
-
Constructor Details
-
CachedUtterance
-
-
Method Details
-
getType
Retrieves the UtteranceType based on the stored String value.- Returns:
- The UtteranceType corresponding to the stored type value.
-
getSemantics
Retrieves the Predicate representing semantics.- Returns:
- The Predicate representing semantics.
-
getIndirectSemantics
Retrieves a list of Terms representing indirect semantics.- Returns:
- A list of Terms representing indirect semantics.
-
getBindings
Retrieves a list of bindings represented as maps of Variable to Symbol.- Returns:
- A list of bindings represented as maps of Variable to Symbol.
-
toJSON
Converts the object to its JSON representation.- Returns:
- The JSON representation of the object.
-
fromJSON
Constructs a CachedUtterance object from its JSON representation.- Parameters:
json
- The JSON string representing the CachedUtterance object.- Returns:
- The CachedUtterance object constructed from the JSON representation.
-