Interface Synthesizer
- All Known Implementing Classes:
BaseSynthesizer
public interface Synthesizer
Part-of-speech synthesizer interface. Implementations are
heavily language-dependent.
-
Method Summary
Modifier and TypeMethodDescriptiongetPosTagCorrection(String posTag) Gets a corrected version of the POS tag used for synthesis.getSpelledNumber(String arabicNumeral) Spells out a numberString[]synthesize(AnalyzedToken token, String posTag) Generates a form of the word with a given POS tag for a given lemma.String[]synthesize(AnalyzedToken token, String posTag, boolean posTagRegExp) Generates a form of the word with a given POS tag for a given lemma.
-
Method Details
-
synthesize
Generates a form of the word with a given POS tag for a given lemma.- Parameters:
token- the token to be used for synthesisposTag- POS tag of the form to be generated- Throws:
IOException
-
synthesize
Generates a form of the word with a given POS tag for a given lemma. POS tag can be specified using regular expressions.- Parameters:
token- the token to be used for synthesisposTag- POS tag of the form to be generatedposTagRegExp- Specifies whether the posTag string is a regular expression.- Throws:
IOException
-
getPosTagCorrection
-
getSpelledNumber
-