public class TokenizationStep extends BasePipelineStep
| Constructor and Description |
|---|
TokenizationStep() |
| Modifier and Type | Method and Description |
|---|---|
List<Token> |
apostrophe(Token token,
LocaleId locale)
Break French and Italian words with apostrophe into three tokens WORD, PUNCTUATION, WORD
|
String |
getDescription() |
String |
getName() |
LocaleId |
getSourceLocale() |
LocaleId |
getTargetLocale() |
protected Event |
handleStartDocument(Event event) |
protected Event |
handleTextUnit(Event event) |
Collection<? extends Token> |
postProcess(Token t,
LocaleId language)
Various rules to make corrections to
RbbiTokenizer |
void |
setSourceLocale(LocaleId sourceLocale) |
void |
setTargetLocale(LocaleId targetLocale) |
cancel, destroy, getHelpLocation, getParameters, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setParametersprotected Event handleStartDocument(Event event)
handleStartDocument in class BasePipelineStepprotected Event handleTextUnit(Event event)
handleTextUnit in class BasePipelineSteppublic LocaleId getSourceLocale()
getSourceLocale in interface IPipelineStepgetSourceLocale in class BasePipelineSteppublic void setSourceLocale(LocaleId sourceLocale)
setSourceLocale in interface IPipelineStepsetSourceLocale in class BasePipelineSteppublic LocaleId getTargetLocale()
getTargetLocale in interface IPipelineStepgetTargetLocale in class BasePipelineSteppublic void setTargetLocale(LocaleId targetLocale)
setTargetLocale in interface IPipelineStepsetTargetLocale in class BasePipelineSteppublic Collection<? extends Token> postProcess(Token t, LocaleId language)
RbbiTokenizert - the Tokenpublic List<Token> apostrophe(Token token, LocaleId locale)
token - public String getName()
public String getDescription()
Copyright © 2021. All rights reserved.