edu.washington.cs.knowitall.rule.constraint
Class CaptureConstraint
java.lang.Object
edu.washington.cs.knowitall.rule.constraint.Constraint
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
| Fields inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint |
part |
| 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 |
CaptureConstraint
public CaptureConstraint(ExtractionPart part)
CaptureConstraint
protected CaptureConstraint(org.jdom.Element e)
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.