Class RepetitionAnalysisStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.repetitionanalysis.RepetitionAnalysisStep
-
- All Implemented Interfaces:
IPipelineStep
public class RepetitionAnalysisStep extends BasePipelineStep
The step analyzes repetitions in input documents. Either exact or configurable fuzzy search is performed.2 types of annotations are created for found repetitive segments -- RepetitiveSegmentAnnotation and AltTranslationsAnnotation. RepetitiveSegmentAnnotation's are attached to all repetitive source segments. AltTranslationsAnnotation's are attached to target segments, corresponding to repetitive source segments. AltTranslationsAnnotation is not attached for the first repetitive segment not to be counted by counting steps twice as repetitive with itself.
-
-
Constructor Summary
Constructors Constructor Description RepetitionAnalysisStep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()static booleancheckSegments(Segment sseg, Segment tseg)StringgetDescription()StringgetName()ParametersgetParameters()protected EventhandleEndDocument(Event event)protected EventhandleStartDocument(Event event)protected EventhandleTextUnit(Event event)voidsetParameters(IParameters params)voidsetSourceLocale(LocaleId sourceLocale)voidsetTargetLocale(LocaleId targetLocale)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep
-
-
-
-
Method Detail
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getParameters
public Parameters getParameters()
- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep
-
cancel
public void cancel()
- Specified by:
cancelin interfaceIPipelineStep- Overrides:
cancelin classBasePipelineStep
-
setParameters
public void setParameters(IParameters params)
- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep
-
setSourceLocale
public void setSourceLocale(LocaleId sourceLocale)
- Specified by:
setSourceLocalein interfaceIPipelineStep- Overrides:
setSourceLocalein classBasePipelineStep
-
setTargetLocale
public void setTargetLocale(LocaleId targetLocale)
- Specified by:
setTargetLocalein interfaceIPipelineStep- Overrides:
setTargetLocalein classBasePipelineStep
-
handleStartDocument
protected Event handleStartDocument(Event event)
- Overrides:
handleStartDocumentin classBasePipelineStep
-
handleEndDocument
protected Event handleEndDocument(Event event)
- Overrides:
handleEndDocumentin classBasePipelineStep
-
handleTextUnit
protected Event handleTextUnit(Event event)
- Overrides:
handleTextUnitin classBasePipelineStep
-
-