Class SemanticRule
java.lang.Object
edu.tufts.hrilab.slug.parsing.tldl.parse.SemanticRule
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(SemanticRule arg) clone()static SemanticRulestatic SemanticRulegenerateLiteralSemanticRule(String body, String semanticType) intDeprecated.Generate semantic form that is actually used by the rest of the system This is pretty messy, because the semantics we use are pretty messy...booleantoString()
-
Constructor Details
-
SemanticRule
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getBodyArgs
Deprecated. -
generateHardcodedSemanticRule
-
generateLiteralSemanticRule
-
apply
-
getSemantics
-
getDefinition
-
getDIARCSemantics
Generate semantic form that is actually used by the rest of the system This is pretty messy, because the semantics we use are pretty messy...- Returns:
- Returns list of Symbols whose first entry is in the form of the semantics field of an Utterance, and the remaining members of the list are in the form of the supplementalSemantics field of an Utterance as well as a map of Variables to GH tiers which are put into the tierAssignments field of an Utterance basically this recursively traverses the parse tree and gets the values of the lambda expressions, but because of how we handle semantics there is a lot of condition checking...
-
isComplete
public boolean isComplete() -
toString
-