edu.washington.cs.knowitall.rule.constraint
Class CaptureConstraint

java.lang.Object
  extended by edu.washington.cs.knowitall.rule.constraint.Constraint
      extended by edu.washington.cs.knowitall.rule.constraint.CaptureConstraint
Direct Known Subclasses:
AbstractPatternConstraint, AbstractRegexConstraint, PartConstraint, TypeConstraint

public abstract class CaptureConstraint
extends Constraint

A constraint that can be used in an argument.

Author:
schmmd

Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint
part
 
Constructor Summary
protected CaptureConstraint(org.jdom.Element e)
           
  CaptureConstraint(ExtractionPart part)
           
 
Method Summary
 String value(RelationExtraction relation)
          Return the part of the extraction captured by the relation.
protected abstract  String value(TokenSequence extraction)
           
 
Methods inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint
check, check, create, create, create, equals, fromXmlElement, generalize, getConstraintClass, hashCode, simplify, size, subsumes, toString, toString, toString, toXmlElement
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaptureConstraint

public CaptureConstraint(ExtractionPart part)

CaptureConstraint

protected CaptureConstraint(org.jdom.Element e)
Method Detail

value

public String value(RelationExtraction relation)
Return the part of the extraction captured by the relation.

Parameters:
relation - the captured text, or null.
Returns:

value

protected abstract String value(TokenSequence extraction)
Parameters:
extraction -
Returns:
the matching string, or null


Copyright © 2011 University of Washington CSE. All Rights Reserved.