public interface Generator
Modifier and Type | Field and Description |
---|---|
static Generator |
DUMMY_GENERATOR
A dummy implementation of a
Generator that doesn't inflect the
token (its output is always the same as its input). |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generate(java.lang.String token,
java.lang.String... morphologicalTags)
Inflects a token according to the given morphological tags.
|
java.lang.String generate(java.lang.String token, java.lang.String... morphologicalTags)
token
- the token to inflect.morphologicalTags
- the morphological tags that specify how the token should be inflected.