Class GMXProtectedWordCountStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.wordcount.common.BaseCountStep
-
- net.sf.okapi.steps.wordcount.categorized.gmx.GMXProtectedWordCountStep
-
- All Implemented Interfaces:
AutoCloseable
,Function<Stream<Event>,Stream<Event>>
,IPipelineStep
,CategoryHandler
- Direct Known Subclasses:
GMXProtectedCharacterCountStep
public class GMXProtectedWordCountStep extends BaseCountStep implements CategoryHandler
-
-
Constructor Summary
Constructors Constructor Description GMXProtectedWordCountStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
count(Segment segment, LocaleId locale)
protected long
count(TextContainer textContainer, LocaleId locale)
protected long
countInTextUnit(ITextUnit textUnit)
protected boolean
countOnlyTranslatable()
CategoryGroup
getCategoryGroup()
protected BaseCounter
getCounter()
String
getDescription()
Gets a short localizable description of what this step does.String
getMetric()
String
getName()
Gets the localizable name of this step.-
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, handleTextUnit, 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
-
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
-
-
-
-
Field Detail
-
METRIC
public static final String METRIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IPipelineStep
Gets the localizable name of this step.- Specified by:
getName
in interfaceIPipelineStep
- Specified by:
getName
in classBaseCountStep
- Returns:
- the localizable name of this step.
-
getDescription
public String getDescription()
Description copied from interface:IPipelineStep
Gets a short localizable description of what this step does.- Specified by:
getDescription
in interfaceIPipelineStep
- Specified by:
getDescription
in classBaseCountStep
- Returns:
- the text of a short description of what this step does.
-
getMetric
public String getMetric()
- Specified by:
getMetric
in interfaceCategoryHandler
- Specified by:
getMetric
in classBaseCountStep
-
getCounter
protected BaseCounter getCounter()
-
count
protected long count(TextContainer textContainer, LocaleId locale)
- Specified by:
count
in classBaseCountStep
-
count
protected long count(Segment segment, LocaleId locale)
- Specified by:
count
in classBaseCountStep
-
countInTextUnit
protected long countInTextUnit(ITextUnit textUnit)
- Specified by:
countInTextUnit
in classBaseCountStep
-
countOnlyTranslatable
protected boolean countOnlyTranslatable()
- Specified by:
countOnlyTranslatable
in classBaseCountStep
-
getCategoryGroup
public CategoryGroup getCategoryGroup()
- Specified by:
getCategoryGroup
in interfaceCategoryHandler
-
-