public class BitextPatternRule extends BitextRule
Rule.match(org.languagetool.AnalyzedSentence) method. It uses the syntax
of XML files similar to normal PatternRules.| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files.
|
String |
getMessage() |
PatternRule |
getSrcRule() |
PatternRule |
getTrgRule() |
RuleMatch[] |
match(AnalyzedSentence text)
This method always returns an empty array.
|
RuleMatch[] |
match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
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.
|
getCorrectBitextExamples, getIncorrectBitextExamples, getRelevantRules, getSourceLang, setCorrectBitextExamples, setIncorrectBitextExamples, setSourceLangaddRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguagepublic PatternRule getSrcRule()
public PatternRule getTrgRule()
public String getDescription()
getDescription in class BitextRulepublic String getMessage()
getMessage in class BitextRulepublic String getId()
RulegetId in class BitextRulepublic RuleMatch[] match(AnalyzedSentence text) throws IOException
match in class BitextRuletext - a pre-analyzed sentenceIOExceptionpublic RuleMatch[] match(AnalyzedSentence sourceText, AnalyzedSentence targetText) throws IOException
match in class BitextRuleIOExceptionpublic void reset()
Rulereset in class BitextRuleCopyright © 2005-2011 Daniel Naber