public abstract class KhmerWordCoherencyRule extends KhmerRule
rules/km/coherency.txt, where km is a code of the language.| Constructor and Description |
|---|
KhmerWordCoherencyRule(ResourceBundle messages) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files.
|
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matches this error rule, i.e. whether the text
contains this error.
|
void |
reset()
If a rule keeps its state over more than the check of one sentence, this
must be implemented so the internal state is reset.
|
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguagepublic KhmerWordCoherencyRule(ResourceBundle messages)
throws IOException
IOExceptionpublic String getId()
Rulepublic String getDescription()
getDescription in class Rulepublic final RuleMatch[] match(AnalyzedSentence text)
RuleCopyright © 2005-2011 Daniel Naber