Class 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  
      • Fields inherited from class org.languagetool.synthesis.BaseSynthesizer

        SPELLNUMBER_TAG
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.languagetool.synthesis.Synthesizer

        getSpelledNumber
    • Field Detail

      • RESOURCE_FILENAME

        private static final java.lang.String RESOURCE_FILENAME
        See Also:
        Constant Field Values
      • POTENTIAL_NEGATION_TAG

        private static final java.lang.String POTENTIAL_NEGATION_TAG
        See Also:
        Constant Field Values
      • possibleTags

        private java.util.List<java.lang.String> possibleTags
    • Constructor Detail

      • PolishSynthesizer

        public PolishSynthesizer​(org.languagetool.Language lang)
    • 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 interface org.languagetool.synthesis.Synthesizer
        Overrides:
        synthesize in class org.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 interface org.languagetool.synthesis.Synthesizer
        Overrides:
        synthesize in class org.languagetool.synthesis.BaseSynthesizer
        Throws:
        java.io.IOException
      • getPosTagCorrection

        public final java.lang.String getPosTagCorrection​(java.lang.String posTag)
        Specified by:
        getPosTagCorrection in interface org.languagetool.synthesis.Synthesizer
        Overrides:
        getPosTagCorrection in class org.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)