Class LanguageToolStep

  • All Implemented Interfaces:
    net.sf.okapi.common.pipeline.IPipelineStep

    public class LanguageToolStep
    extends net.sf.okapi.common.pipeline.BasePipelineStep
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      String getDescription()  
      String getName()  
      net.sf.okapi.common.IParameters getParameters()  
      protected net.sf.okapi.common.Event handleTextUnit​(net.sf.okapi.common.Event event)  
      void setLanguageTool​(LanguageTool lt)
      Set a custom language tool object
      void setParameters​(net.sf.okapi.common.IParameters params)  
      void setSourceLocale​(net.sf.okapi.common.LocaleId sourceLocale)  
      void setTargetLocale​(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
    • Constructor Detail

      • LanguageToolStep

        public LanguageToolStep()
    • Method Detail

      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • getParameters

        public net.sf.okapi.common.IParameters getParameters()
        Specified by:
        getParameters in interface net.sf.okapi.common.pipeline.IPipelineStep
        Overrides:
        getParameters in class net.sf.okapi.common.pipeline.BasePipelineStep
      • setParameters

        public void setParameters​(net.sf.okapi.common.IParameters params)
        Specified by:
        setParameters in interface net.sf.okapi.common.pipeline.IPipelineStep
        Overrides:
        setParameters in class net.sf.okapi.common.pipeline.BasePipelineStep
      • setTargetLocale

        public void setTargetLocale​(net.sf.okapi.common.LocaleId targetLocale)
        Specified by:
        setTargetLocale in interface net.sf.okapi.common.pipeline.IPipelineStep
        Overrides:
        setTargetLocale in class net.sf.okapi.common.pipeline.BasePipelineStep
      • setSourceLocale

        public void setSourceLocale​(net.sf.okapi.common.LocaleId sourceLocale)
        Specified by:
        setSourceLocale in interface net.sf.okapi.common.pipeline.IPipelineStep
        Overrides:
        setSourceLocale in class net.sf.okapi.common.pipeline.BasePipelineStep
      • handleTextUnit

        protected net.sf.okapi.common.Event handleTextUnit​(net.sf.okapi.common.Event event)
        Overrides:
        handleTextUnit in class net.sf.okapi.common.pipeline.BasePipelineStep
      • destroy

        public void destroy()
        Specified by:
        destroy in interface net.sf.okapi.common.pipeline.IPipelineStep
        Overrides:
        destroy in class net.sf.okapi.common.pipeline.BasePipelineStep
      • setLanguageTool

        public void setLanguageTool​(LanguageTool lt)
        Set a custom language tool object
        Parameters:
        lt -