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

java.lang.Object
  extended by edu.washington.cs.knowitall.rule.constraint.Constraint
      extended by edu.washington.cs.knowitall.rule.constraint.CaptureConstraint
          extended by edu.washington.cs.knowitall.rule.constraint.AbstractRegexConstraint
              extended by edu.washington.cs.knowitall.rule.constraint.RegexConstraint
                  extended by edu.washington.cs.knowitall.rule.constraint.LemmaConstraint

public class LemmaConstraint
extends RegexConstraint

Constrains based on the presence of a lemma.

Author:
schmmd

Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.rule.constraint.AbstractRegexConstraint
pattern, terms
 
Fields inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint
part
 
Constructor Summary
LemmaConstraint(org.jdom.Element e)
           
LemmaConstraint(ExtractionPart part, List<String> terms)
           
LemmaConstraint(ExtractionPart part, String term)
           
 
Method Summary
protected  int flags()
           
protected  String getString(TokenSequence extraction)
           
 String string()
           
protected  String transform(String string)
           
 
Methods inherited from class edu.washington.cs.knowitall.rule.constraint.RegexConstraint
check, toString, value
 
Methods inherited from class edu.washington.cs.knowitall.rule.constraint.AbstractRegexConstraint
equals, generalize, hashCode, size, toXmlElement
 
Methods inherited from class edu.washington.cs.knowitall.rule.constraint.CaptureConstraint
value
 
Methods inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint
check, create, create, create, fromXmlElement, getConstraintClass, simplify, subsumes, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LemmaConstraint

public LemmaConstraint(org.jdom.Element e)

LemmaConstraint

public LemmaConstraint(ExtractionPart part,
                       String term)

LemmaConstraint

public LemmaConstraint(ExtractionPart part,
                       List<String> terms)
Method Detail

string

public String string()

transform

protected String transform(String string)
Overrides:
transform in class RegexConstraint

getString

protected String getString(TokenSequence extraction)
Overrides:
getString in class RegexConstraint

flags

protected int flags()
Overrides:
flags in class RegexConstraint


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