Class GMXAlphanumericOnlyTextUnitWordCountStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.wordcount.common.BaseCountStep
-
- net.sf.okapi.steps.wordcount.common.TokenCountStep
-
- net.sf.okapi.steps.wordcount.categorized.gmx.GMXAlphanumericOnlyTextUnitWordCountStep
-
- All Implemented Interfaces:
IPipelineStep,CategoryHandler
public class GMXAlphanumericOnlyTextUnitWordCountStep extends TokenCountStep implements CategoryHandler
-
-
Constructor Summary
Constructors Constructor Description GMXAlphanumericOnlyTextUnitWordCountStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancountOnlyTranslatable()protected TokensfilterTokens(Tokens allTokens)CategoryGroupgetCategoryGroup()StringgetDescription()Gets a short localizable description of what this step does.StringgetMetric()StringgetName()Gets the localizable name of this step.protected String[]getTokenNames()protected EventhandleTextUnit(Event event)Handles theEventType.TEXT_UNITevent.-
Methods inherited from class net.sf.okapi.steps.wordcount.common.TokenCountStep
count, count, countInTextUnit, getTokens, getTokens
-
Methods inherited from class net.sf.okapi.steps.wordcount.common.BaseCountStep
getBatchCount, getBatchItemCount, getDocumentCount, getGroupCount, getSource, getSubDocumentCount, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, removeFromMetrics, removeFromMetrics, removeFromMetrics, saveCount, saveToMetrics, saveToMetrics, saveToMetrics
-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getParameters, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocale
-
-
-
-
Field Detail
-
METRIC
public static final String METRIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTokenNames
protected String[] getTokenNames()
- Specified by:
getTokenNamesin classTokenCountStep
-
filterTokens
protected Tokens filterTokens(Tokens allTokens)
- Overrides:
filterTokensin classTokenCountStep
-
getName
public String getName()
Description copied from interface:IPipelineStepGets the localizable name of this step.- Specified by:
getNamein interfaceIPipelineStep- Specified by:
getNamein classBaseCountStep- Returns:
- the localizable name of this step.
-
getDescription
public String getDescription()
Description copied from interface:IPipelineStepGets a short localizable description of what this step does.- Specified by:
getDescriptionin interfaceIPipelineStep- Specified by:
getDescriptionin classBaseCountStep- Returns:
- the text of a short description of what this step does.
-
getMetric
public String getMetric()
- Specified by:
getMetricin interfaceCategoryHandler- Specified by:
getMetricin classBaseCountStep
-
countOnlyTranslatable
protected boolean countOnlyTranslatable()
- Specified by:
countOnlyTranslatablein classBaseCountStep
-
handleTextUnit
protected Event handleTextUnit(Event event)
Description copied from class:BasePipelineStepHandles theEventType.TEXT_UNITevent.- Overrides:
handleTextUnitin classBaseCountStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
getCategoryGroup
public CategoryGroup getCategoryGroup()
- Specified by:
getCategoryGroupin interfaceCategoryHandler
-
-