public abstract class Rule extends Object
Modifier and Type | Field and Description |
---|---|
protected String[] |
context |
protected String |
from |
protected String |
ruleId |
protected String |
to |
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(POSTagger tagger) |
abstract boolean |
checkContext(POSTagger tagger) |
boolean |
hasToTag(POSTagger tagger) |
void |
initialise(List<String> ruleParts) |
public Rule()
public void initialise(List<String> ruleParts)
public abstract boolean checkContext(POSTagger tagger)