Package net.sf.okapi.steps.segmentation
Class SegmentationStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.segmentation.SegmentationStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<Event>,Stream<Event>>,IPipelineStep
public class SegmentationStep extends BasePipelineStep
-
-
Constructor Summary
Constructors Constructor Description SegmentationStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetInputRootDirectory()StringgetName()ParametersgetParameters()StringgetRootDirectory()LocaleIdgetSourceLocale()List<LocaleId>getTargetLocales()protected EventhandleCustom(Event event)protected EventhandleStartBatch(Event event)protected EventhandleStartBatchItem(Event event)protected EventhandleStartDocument(Event event)protected EventhandleTextUnit(Event event)voidsetInputRootDirectory(String inputRootDir)voidsetParameters(IParameters params)voidsetRootDirectory(String rootDir)voidsetSourceLocale(LocaleId sourceLocale)voidsetTargetLocales(List<LocaleId> targetLocales)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getTargetLocale, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setTargetLocale
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.pipeline.IPipelineStep
apply, close, handleStream
-
-
-
-
Method Detail
-
setSourceLocale
public void setSourceLocale(LocaleId sourceLocale)
- Specified by:
setSourceLocalein interfaceIPipelineStep- Overrides:
setSourceLocalein classBasePipelineStep
-
setRootDirectory
public void setRootDirectory(String rootDir)
-
setInputRootDirectory
public void setInputRootDirectory(String inputRootDir)
-
getSourceLocale
public LocaleId getSourceLocale()
- Specified by:
getSourceLocalein interfaceIPipelineStep- Overrides:
getSourceLocalein classBasePipelineStep
-
getRootDirectory
public String getRootDirectory()
-
getInputRootDirectory
public String getInputRootDirectory()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getParameters
public Parameters getParameters()
- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep
-
setParameters
public void setParameters(IParameters params)
- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep
-
handleStartBatch
protected Event handleStartBatch(Event event)
- Overrides:
handleStartBatchin classBasePipelineStep
-
handleStartBatchItem
protected Event handleStartBatchItem(Event event)
- Overrides:
handleStartBatchItemin classBasePipelineStep
-
handleStartDocument
protected Event handleStartDocument(Event event)
- Overrides:
handleStartDocumentin classBasePipelineStep
-
handleCustom
protected Event handleCustom(Event event)
- Overrides:
handleCustomin classBasePipelineStep
-
handleTextUnit
protected Event handleTextUnit(Event event)
- Overrides:
handleTextUnitin classBasePipelineStep
-
-