Package com.acumenvelocity.ath.steps
Class BaseAlignerStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- com.acumenvelocity.ath.steps.BaseTuBatchProcessingStep
-
- com.acumenvelocity.ath.steps.BaseAlignerStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<net.sf.okapi.common.Event>,Stream<net.sf.okapi.common.Event>>,net.sf.okapi.common.pipeline.IPipelineStep
- Direct Known Subclasses:
HeuristicSentenceAlignerStep,LlmSentenceAlignerStep
public abstract class BaseAlignerStep extends BaseTuBatchProcessingStep
Base class for sentence alignment steps that align source and target documents at both paragraph and sentence levels.
-
-
Constructor Summary
Constructors Constructor Description BaseAlignerStep(net.sf.okapi.common.filters.IFilter targetFilter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract net.sf.okapi.common.IParametersgetParameters()Get the parameters object for this aligner.voidsetSecondInput(net.sf.okapi.common.resource.RawDocument secondInput)-
Methods inherited from class com.acumenvelocity.ath.steps.BaseTuBatchProcessingStep
getNumProcessedTus, handleEvent
-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocale
-
-
-
-
Method Detail
-
setSecondInput
public void setSecondInput(net.sf.okapi.common.resource.RawDocument secondInput)
-
getParameters
public abstract net.sf.okapi.common.IParameters getParameters()
Get the parameters object for this aligner. Must return a parameters class that implements the required parameter methods.- Specified by:
getParametersin interfacenet.sf.okapi.common.pipeline.IPipelineStep- Overrides:
getParametersin classnet.sf.okapi.common.pipeline.BasePipelineStep
-
-