com.textrazor.annotations
Class Entailment

java.lang.Object
  extended by com.textrazor.annotations.Annotation
      extended by com.textrazor.annotations.Entailment

public class Entailment
extends Annotation


Nested Class Summary
static class Entailment.EntailedTree
           
 
Constructor Summary
Entailment()
           
 
Method Summary
 double getContextScore()
           
 Entailment.EntailedTree getEntailedTree()
           
 java.util.List<java.lang.String> getEntailedWords()
           
 int getId()
           
 java.util.List<Word> getMatchedWords()
           
 double getPriorScore()
           
 double getScore()
           
 java.util.List<java.lang.Integer> getWordPositions()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entailment

public Entailment()
Method Detail

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