com.textrazor.annotations
Class Entailment
java.lang.Object
com.textrazor.annotations.Annotation
com.textrazor.annotations.Entailment
public class Entailment
- extends Annotation
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Entailment
public Entailment()
getMatchedWords
public java.util.List<Word> getMatchedWords()
- Returns:
- a List of the
Word
objects that generated this entailment.
getId
public int getId()
- Returns:
- the ID of this annotation.
getWordPositions
public java.util.List<java.lang.Integer> getWordPositions()
- Returns:
- the indexes of words that generated this entailment.
getPriorScore
public double getPriorScore()
- Returns:
- the score of this entailment independent of the context it is used in this sentence.
getContextScore
public double getContextScore()
- Returns:
- the score of agreement between the source word's usage in this sentence and the entailed words usage in our knowledgebase.
getScore
public double getScore()
- Returns:
- the overall confidence that TextRazor is correct that this is a valid entailment, a combination of the prior and context score.
getEntailedTree
public Entailment.EntailedTree getEntailedTree()
- Returns:
- the words that are entailed by the source word.
getEntailedWords
public java.util.List<java.lang.String> getEntailedWords()
- Returns:
- a list of String lemmas that make up words entailed by the source word