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.Synthesizer
Polish word form synthesizer. Based on project Morfologik.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
COMP_TAG
private static java.lang.String
NEGATION_TAG
private java.util.List<java.lang.String>
possibleTags
private static java.lang.String
POTENTIAL_NEGATION_TAG
private static java.lang.String
RESOURCE_FILENAME
private static java.lang.String
SUP_TAG
private static java.lang.String
TAGS_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.String
getPosTagCorrection(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:
synthesize
in interfaceorg.languagetool.synthesis.Synthesizer
- Overrides:
synthesize
in 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:
synthesize
in interfaceorg.languagetool.synthesis.Synthesizer
- Overrides:
synthesize
in classorg.languagetool.synthesis.BaseSynthesizer
- Throws:
java.io.IOException
-
getPosTagCorrection
public final java.lang.String getPosTagCorrection(java.lang.String posTag)
- Specified by:
getPosTagCorrection
in interfaceorg.languagetool.synthesis.Synthesizer
- Overrides:
getPosTagCorrection
in 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)
-
-