public class SentenceAlignerStep extends BasePipelineStep implements IObserver
IPipelineStep (via configuration) can also output aligned (multilingual TextUnits)| Constructor and Description |
|---|
SentenceAlignerStep() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets a short localizable description of what this step does.
|
String |
getName()
Gets the localizable name of this step.
|
Parameters |
getParameters()
Gets the current parameters for this step.
|
protected Event |
handleEndBatch(Event event)
Handles the
EventType.END_BATCH event. |
protected Event |
handleEndDocument(Event event)
Handles the
EventType.END_DOCUMENT event. |
protected Event |
handlePipelineParameters(Event sourceEvent)
Handles the
EventType#PIPELINE_PARAMETERS event. |
protected Event |
handleStartBatch(Event event)
Handles the
EventType.START_BATCH event. |
protected Event |
handleStartDocument(Event event)
Handles the
EventType.START_DOCUMENT event. |
protected Event |
handleTextUnit(Event sourceEvent)
Handles the
EventType.TEXT_UNIT event. |
void |
setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper) |
void |
setParameters(IParameters params)
Sets new parameters for this step.
|
void |
setSecondInput(RawDocument secondInput) |
void |
setSourceLocale(LocaleId sourceLocale) |
void |
setTargetLocale(LocaleId targetLocale) |
void |
update(IObservable o,
Object event)
This method is called whenever the observed object is changed.
|
cancel, destroy, getHelpLocation, handleCustom, handleDocumentPart, handleEndBatchItem, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handleRawDocument, handleStartBatchItem, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputSteppublic void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
public void setSourceLocale(LocaleId sourceLocale)
public void setTargetLocale(LocaleId targetLocale)
public void setSecondInput(RawDocument secondInput)
public String getName()
IPipelineStepgetName in interface IPipelineSteppublic String getDescription()
IPipelineStepgetDescription in interface IPipelineSteppublic Parameters getParameters()
IPipelineStepgetParameters in interface IPipelineStepgetParameters in class BasePipelineSteppublic void setParameters(IParameters params)
IPipelineStepsetParameters in interface IPipelineStepsetParameters in class BasePipelineStepparams - the new parameters to use.protected Event handleStartBatch(Event event)
BasePipelineStepEventType.START_BATCH event.handleStartBatch in class BasePipelineStepevent - event to handle.protected Event handleEndBatch(Event event)
BasePipelineStepEventType.END_BATCH event.handleEndBatch in class BasePipelineStepevent - event to handle.protected Event handleStartDocument(Event event)
BasePipelineStepEventType.START_DOCUMENT event.handleStartDocument in class BasePipelineStepevent - event to handle.protected Event handleEndDocument(Event event)
BasePipelineStepEventType.END_DOCUMENT event.handleEndDocument in class BasePipelineStepevent - event to handle.protected Event handleTextUnit(Event sourceEvent)
BasePipelineStepEventType.TEXT_UNIT event.handleTextUnit in class BasePipelineStepsourceEvent - event to handle.protected Event handlePipelineParameters(Event sourceEvent)
BasePipelineStepEventType#PIPELINE_PARAMETERS event.
This method relies on the configuration parameters set in each step to set the corresponding values.handlePipelineParameters in class BasePipelineStepsourceEvent - event to handle.public void update(IObservable o, Object event)
IObserverCopyright © 2021. All rights reserved.