Package net.sf.okapi.steps.languagetool
Class LanguageToolStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.languagetool.LanguageToolStep
-
- All Implemented Interfaces:
net.sf.okapi.common.pipeline.IPipelineStep
public class LanguageToolStep extends net.sf.okapi.common.pipeline.BasePipelineStep
-
-
Constructor Summary
Constructors Constructor Description LanguageToolStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()StringgetDescription()StringgetName()net.sf.okapi.common.IParametersgetParameters()protected net.sf.okapi.common.EventhandleTextUnit(net.sf.okapi.common.Event event)voidsetLanguageTool(LanguageTool lt)Set a custom language tool objectvoidsetParameters(net.sf.okapi.common.IParameters params)voidsetSourceLocale(net.sf.okapi.common.LocaleId sourceLocale)voidsetTargetLocale(net.sf.okapi.common.LocaleId targetLocale)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep
-
-
-
-
Method Detail
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getParameters
public net.sf.okapi.common.IParameters getParameters()
- Specified by:
getParametersin interfacenet.sf.okapi.common.pipeline.IPipelineStep- Overrides:
getParametersin classnet.sf.okapi.common.pipeline.BasePipelineStep
-
setParameters
public void setParameters(net.sf.okapi.common.IParameters params)
- Specified by:
setParametersin interfacenet.sf.okapi.common.pipeline.IPipelineStep- Overrides:
setParametersin classnet.sf.okapi.common.pipeline.BasePipelineStep
-
setTargetLocale
public void setTargetLocale(net.sf.okapi.common.LocaleId targetLocale)
- Specified by:
setTargetLocalein interfacenet.sf.okapi.common.pipeline.IPipelineStep- Overrides:
setTargetLocalein classnet.sf.okapi.common.pipeline.BasePipelineStep
-
setSourceLocale
public void setSourceLocale(net.sf.okapi.common.LocaleId sourceLocale)
- Specified by:
setSourceLocalein interfacenet.sf.okapi.common.pipeline.IPipelineStep- Overrides:
setSourceLocalein classnet.sf.okapi.common.pipeline.BasePipelineStep
-
handleTextUnit
protected net.sf.okapi.common.Event handleTextUnit(net.sf.okapi.common.Event event)
- Overrides:
handleTextUnitin classnet.sf.okapi.common.pipeline.BasePipelineStep
-
destroy
public void destroy()
- Specified by:
destroyin interfacenet.sf.okapi.common.pipeline.IPipelineStep- Overrides:
destroyin classnet.sf.okapi.common.pipeline.BasePipelineStep
-
setLanguageTool
public void setLanguageTool(LanguageTool lt)
Set a custom language tool object- Parameters:
lt-
-
-