Package de.monochromata.anaphors.cog
Interface Resolution<N,E,T,B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>,A extends ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>>
- Type Parameters:
N- The node type in the ASTE- The expression typeT- The type typeB- The binding typeTB- The type binding typeS- The scope type (optional)I- The type used to represent identifiersQI- The type used to represent qualified identifiersR- The sub-type of related expression to useA- The sub-type of AST-based anaphora to use
- All Known Implementing Classes:
DefaultResolution
public interface Resolution<N,E,T,B,TB extends B,S,I,QI,R extends RelatedExpression<N,T,B,TB,S,QI,R>,A extends ASTBasedAnaphora<N,E,T,B,TB,S,I,QI,R,A>>
Used to represent (potential) resolutions of anaphors based on a cognitive
model.
Anaphor resolution may require a preparatory AST transformation. Anaphor
resolution eventually happens by obtaining an AST-based
ASTBasedAnaphora relation that can be underspecified.
-
Method Summary
Modifier and Type Method Description CheckResult<N,E,S>getCheckResult()The check result is obtained from thePreparatoryTransformationand can be used to actually perform the preparatory transformation.AgetPreliminaryAnaphora()The preliminary anaphora might be used to signal to users which anaphora relations are available, e.g.PreparatoryTransformation<N,E,T,B,TB,S,I,QI,R,A>getPreparatoryTransformation()
-
Method Details
-
getCheckResult
CheckResult<N,E,S> getCheckResult()The check result is obtained from thePreparatoryTransformationand can be used to actually perform the preparatory transformation.- Returns:
- a check result with
CheckResult.canPerformTransformation()returning true. - See Also:
PreparatoryTransformation.canPerform(de.monochromata.anaphors.cog.memory.Chunk, Object, Object),PreparatoryTransformation.perform(CheckResult, ASTBasedAnaphora),getPreparatoryTransformation()
-
getPreparatoryTransformation
- Returns:
- a preparatory AST transformation that yields the AST-based
ASTBasedAnaphorarelation. - See Also:
getPreliminaryAnaphora(),PreparatoryTransformation.perform(CheckResult, ASTBasedAnaphora),getCheckResult()
-
getPreliminaryAnaphora
The preliminary anaphora might be used to signal to users which anaphora relations are available, e.g. in case of referential ambiguity.- Returns:
- a preliminary anaphora relation comparable to the one that could be re-resolved after the preparatory transformation has been applied.
- See Also:
getPreparatoryTransformation()
-