com.textrazor.annotations
Class Relation

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

public class Relation
extends Annotation


Constructor Summary
Relation()
           
 
Method Summary
 int getId()
           
 java.util.List<RelationParam> getParams()
           
 java.util.List<Word> getPredicateWords()
           
 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

Relation

public Relation()
Method Detail

getId

public int getId()
Returns:
The ID of this Annotation

getWordPositions

public java.util.List<java.lang.Integer> getWordPositions()
Returns:
A list of the positions of the predicate words in this relation within their sentence.

getPredicateWords

public java.util.List<Word> getPredicateWords()
Returns:
A list of the Word objects in this relation within their sentence.

getParams

public java.util.List<RelationParam> getParams()
Returns:
A list of the RelationParam object that a paramaters to the predicate.