Package org.omegat.tokenizer
Annotation Interface Tokenizer
Annotation to indicate the languages for which
a tokenizer is intended for use.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhen multiple tokenizers support the same language, this indicates the one that should be preferred above the others. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for thelanguages()member that indicates that the supported languages should be determined at runtime viaBaseTokenizer.getSupportedLanguages().
-
Field Details
-
DISCOVER_AT_RUNTIME
Value for thelanguages()member that indicates that the supported languages should be determined at runtime viaBaseTokenizer.getSupportedLanguages().- See Also:
-
-
Element Details
-
languages
String[] languagesThe languages supported by the tokenizer. E.g. LuceneCJKTokenizer supports { zh, ja, ko }.
-
-
-
isDefault
boolean isDefaultWhen multiple tokenizers support the same language, this indicates the one that should be preferred above the others.- Default:
- false
-