Class ConceptEntry2TermCheckRules
- java.lang.Object
-
- net.sf.okapi.lib.languagetool.rules.AbstractLanguageToolRuleGenerator
-
- net.sf.okapi.lib.languagetool.rules.ConceptEntry2TermCheckRules
-
public class ConceptEntry2TermCheckRules extends AbstractLanguageToolRuleGenerator
Converts aIGlossaryReaderinto a list ofTermCheckRuleto be used for term consistency checking.- Author:
- jimh
-
-
Constructor Summary
Constructors Constructor Description ConceptEntry2TermCheckRules(net.sf.okapi.common.LocaleId srcLocale, net.sf.okapi.common.LocaleId trgLocale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TermCheckRule>convert(List<net.sf.okapi.lib.terminology.ConceptEntry> concepts)List<TermCheckRule>convert(net.sf.okapi.lib.terminology.IGlossaryReader reader)org.languagetool.LanguagegetSrcLang()org.languagetool.LanguagegetTrgLang()-
Methods inherited from class net.sf.okapi.lib.languagetool.rules.AbstractLanguageToolRuleGenerator
createPatternToken, getPatternTokens
-
-
-
-
Method Detail
-
convert
public List<TermCheckRule> convert(List<net.sf.okapi.lib.terminology.ConceptEntry> concepts) throws IOException
- Throws:
IOException
-
convert
public List<TermCheckRule> convert(net.sf.okapi.lib.terminology.IGlossaryReader reader) throws IOException
- Throws:
IOException
-
getSrcLang
public org.languagetool.Language getSrcLang()
-
getTrgLang
public org.languagetool.Language getTrgLang()
-
-