Package org.languagetool.synthesis.pl
Class PolishSynthesizer
- java.lang.Object
-
- org.languagetool.synthesis.BaseSynthesizer
-
- org.languagetool.synthesis.pl.PolishSynthesizer
-
- All Implemented Interfaces:
org.languagetool.synthesis.Synthesizer
public class PolishSynthesizer extends org.languagetool.synthesis.BaseSynthesizer implements org.languagetool.synthesis.SynthesizerPolish word form synthesizer. Based on project Morfologik.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOMP_TAGprivate static java.lang.StringNEGATION_TAGprivate java.util.List<java.lang.String>possibleTagsprivate static java.lang.StringPOTENTIAL_NEGATION_TAGprivate static java.lang.StringRESOURCE_FILENAMEprivate static java.lang.StringSUP_TAGprivate static java.lang.StringTAGS_FILE_NAME
-
Constructor Summary
Constructors Constructor Description PolishSynthesizer(org.languagetool.Language lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPosTagCorrection(java.lang.String posTag)private java.util.List<java.lang.String>getWordForms(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean isNegated, morfologik.stemming.IStemmer synthesizer)java.lang.String[]synthesize(org.languagetool.AnalyzedToken token, java.lang.String posTag)java.lang.String[]synthesize(org.languagetool.AnalyzedToken token, java.lang.String pos, boolean posTagRegExp)-
Methods inherited from class org.languagetool.synthesis.BaseSynthesizer
createStemmer, getDictionary, getSpelledNumber, getStemmer, initPossibleTags, lookup
-
-
-
-
Field Detail
-
RESOURCE_FILENAME
private static final java.lang.String RESOURCE_FILENAME
- See Also:
- Constant Field Values
-
TAGS_FILE_NAME
private static final java.lang.String TAGS_FILE_NAME
- See Also:
- Constant Field Values
-
POTENTIAL_NEGATION_TAG
private static final java.lang.String POTENTIAL_NEGATION_TAG
- See Also:
- Constant Field Values
-
NEGATION_TAG
private static final java.lang.String NEGATION_TAG
- See Also:
- Constant Field Values
-
COMP_TAG
private static final java.lang.String COMP_TAG
- See Also:
- Constant Field Values
-
SUP_TAG
private static final java.lang.String SUP_TAG
- See Also:
- Constant Field Values
-
possibleTags
private java.util.List<java.lang.String> possibleTags
-
-
Method Detail
-
synthesize
public final java.lang.String[] synthesize(org.languagetool.AnalyzedToken token, java.lang.String posTag) throws java.io.IOException- Specified by:
synthesizein interfaceorg.languagetool.synthesis.Synthesizer- Overrides:
synthesizein classorg.languagetool.synthesis.BaseSynthesizer- Throws:
java.io.IOException
-
synthesize
public final java.lang.String[] synthesize(org.languagetool.AnalyzedToken token, java.lang.String pos, boolean posTagRegExp) throws java.io.IOException- Specified by:
synthesizein interfaceorg.languagetool.synthesis.Synthesizer- Overrides:
synthesizein classorg.languagetool.synthesis.BaseSynthesizer- Throws:
java.io.IOException
-
getPosTagCorrection
public final java.lang.String getPosTagCorrection(java.lang.String posTag)
- Specified by:
getPosTagCorrectionin interfaceorg.languagetool.synthesis.Synthesizer- Overrides:
getPosTagCorrectionin classorg.languagetool.synthesis.BaseSynthesizer
-
getWordForms
private java.util.List<java.lang.String> getWordForms(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean isNegated, morfologik.stemming.IStemmer synthesizer)
-
-