|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
BitextRule
SameTranslationRule
public class SameTranslationRule
Checks if the translation for segments that have more than two words is different.
| Constructor Summary | |
|---|---|
SameTranslationRule()
|
|
| Method Summary | |
|---|---|
String |
getDescription()
|
String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files. |
String |
getMessage()
|
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. |
| Methods inherited from class BitextRule |
|---|
getCorrectBitextExamples, getIncorrectBitextExamples, getRelevantRules, getSourceLang, match, setCorrectBitextExamples, setIncorrectBitextExamples, setSourceLang |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SameTranslationRule()
| Method Detail |
|---|
public String getDescription()
getDescription in class BitextRulepublic String getId()
Rule
getId in class BitextRulepublic String getMessage()
getMessage in class BitextRule
public RuleMatch[] match(AnalyzedSentence sourceText,
AnalyzedSentence targetText)
throws IOException
match in class BitextRuleIOExceptionpublic void reset()
Rule
reset in class BitextRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||