|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
AbstractPatternRule
PatternRule
public class PatternRule
A Rule that describes a language error as a simple pattern of words or of part-of-speech tags.
| Method Summary | |
|---|---|
void |
addSuggestionMatch(Match m)
|
List<Element> |
getElements()
For testing only. |
String |
getMessage()
|
String |
getSubId()
|
boolean |
isWithComplexPhrase()
Used for testing rules: only one of the set can match. |
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matches this error rule, i.e. whether the text contains this error. |
void |
notComplexPhrase()
Reset complex status - used for testing. |
void |
setMessage(String message)
|
void |
setSubId(String subId)
|
String |
toPatternString()
Return the pattern as a string. |
String |
toXML()
Return the pattern as an XML string. |
| Methods inherited from class AbstractPatternRule |
|---|
getDescription, getId, reset, setEndPositionCorrection, setStartPositionCorrection, toString |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final String getSubId()
public final void setSubId(String subId)
public final String getMessage()
public final boolean isWithComplexPhrase()
public final void notComplexPhrase()
public final String toPatternString()
public final String toXML()
public final void setMessage(String message)
public final RuleMatch[] match(AnalyzedSentence text)
throws IOException
Rule
match in class AbstractPatternRuletext - a pre-analyzed sentence
IOExceptionpublic final void addSuggestionMatch(Match m)
public final List<Element> getElements()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||