GATE
Version 3.1-2270

hepple.postag
Class Rule

java.lang.Object
  extended by hepple.postag.Rule
Direct Known Subclasses:
Rule_CURWD, Rule_LBIGRAM, Rule_NEXT1OR2OR3TAG, Rule_NEXT1OR2TAG, Rule_NEXT1OR2WD, Rule_NEXT2TAG, Rule_NEXT2WD, Rule_NEXTBIGRAM, Rule_NEXTTAG, Rule_NEXTWD, Rule_PREV1OR2OR3TAG, Rule_PREV1OR2TAG, Rule_PREV1OR2WD, Rule_PREV2TAG, Rule_PREV2WD, Rule_PREVBIGRAM, Rule_PREVTAG, Rule_PREVWD, Rule_RBIGRAM, Rule_SURROUNDTAG, Rule_UNKNOWN, Rule_UNRESTRICTED, Rule_WDAND2AFT, Rule_WDAND2BFR, Rule_WDAND2TAGAFT, Rule_WDAND2TAGBFR, Rule_WDNEXTTAG, Rule_WDPREVTAG

public abstract class Rule
extends Object


Field Summary
protected  String[] context
           
protected  String from
           
protected  String ruleId
           
protected  String to
           
 
Constructor Summary
Rule()
           
 
Method Summary
 boolean apply(POSTagger tagger)
           
abstract  boolean checkContext(POSTagger tagger)
           
 boolean hasToTag(POSTagger tagger)
           
 void initialise(List ruleParts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

protected String from

to

protected String to

ruleId

protected String ruleId

context

protected String[] context
Constructor Detail

Rule

public Rule()
Method Detail

initialise

public void initialise(List ruleParts)

checkContext

public abstract boolean checkContext(POSTagger tagger)

hasToTag

public boolean hasToTag(POSTagger tagger)

apply

public boolean apply(POSTagger tagger)

GATE
Version 3.1-2270