Package org.languagetool.synthesis
Class GermanSynthesizer
- java.lang.Object
-
- org.languagetool.synthesis.BaseSynthesizer
-
- org.languagetool.synthesis.GermanSynthesizer
-
- All Implemented Interfaces:
org.languagetool.synthesis.Synthesizer
public class GermanSynthesizer extends org.languagetool.synthesis.BaseSynthesizer
German word form synthesizer. Also supports compounds.- Since:
- 2.4
-
-
Field Summary
Fields Modifier and Type Field Description private GermanCompoundTokenizer
splitter
-
Constructor Summary
Constructors Constructor Description GermanSynthesizer(org.languagetool.Language lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private @NotNull java.lang.String[]
getCompoundForms(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean posTagRegExp)
java.lang.String[]
synthesize(org.languagetool.AnalyzedToken token, java.lang.String posTag)
java.lang.String[]
synthesize(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean posTagRegExp)
-
-
-
Field Detail
-
splitter
private final GermanCompoundTokenizer splitter
-
-
Method Detail
-
synthesize
public 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 java.lang.String[] synthesize(org.languagetool.AnalyzedToken token, java.lang.String posTag, 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
-
getCompoundForms
@NotNull private @NotNull java.lang.String[] getCompoundForms(org.languagetool.AnalyzedToken token, java.lang.String posTag, boolean posTagRegExp) throws java.io.IOException
- Throws:
java.io.IOException
-
-