Class PostSegmentationCodeSimplifierStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.common.codesimplifier.PostSegmentationCodeSimplifierStep
-
- All Implemented Interfaces:
IPipelineStep
public class PostSegmentationCodeSimplifierStep extends BasePipelineStep
Simplify inline codes by merging adjacent codes (where safe) and trimming start and end codes.WARNING: An error will be thrown if the TextUnits have not been segmented. This step must be run post-segmentation as trimmed codes are moved to inter-segment
TextParts.TextParts will be created if needed.
-
-
Constructor Summary
Constructors Constructor Description PostSegmentationCodeSimplifierStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetName()ParametersgetParameters()protected EventhandleTextUnit(Event event)voidsetParameters(IParameters params)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setSourceLocale, setTargetLocale
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
-
getName
public String getName()
-
getParameters
public Parameters getParameters()
- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep
-
setParameters
public void setParameters(IParameters params)
- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep
-
handleTextUnit
protected Event handleTextUnit(Event event)
- Overrides:
handleTextUnitin classBasePipelineStep
-
-