Class AltAnnotationBasedCountStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.wordcount.common.BaseCountStep
-
- net.sf.okapi.steps.wordcount.common.AltAnnotationBasedCountStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<Event>,Stream<Event>>,IPipelineStep
- Direct Known Subclasses:
ConcordanceWordCountStep,ExactDocumentContextMatchWordCountStep,ExactLocalContextMatchWordCountStep,ExactMatchWordCountStep,ExactPreviousVersionMatchWordCountStep,ExactRepairedWordCountStep,ExactStructuralMatchWordCountStep,ExactTextOnlyPreviousVersionMatchWordCountStep,ExactTextOnlyUniqueIdMatchWordCountStep,ExactTextOnlyWordCountStep,ExactUniqueIdMatchWordCountStep,FuzzyMatchWordCountStep,FuzzyPreviousVersionMatchWordCountStep,FuzzyRepairedWordCountStep,FuzzyUniqueIdMatchWordCountStep,GMXExactMatchedWordCountStep,GMXFuzzyMatchWordCountStep,GMXLeveragedMatchedWordCountStep,GMXRepetitionMatchedWordCountStep,MTWordCountStep,PhraseAssembledWordCountStep
public abstract class AltAnnotationBasedCountStep extends BaseCountStep
-
-
Constructor Summary
Constructors Constructor Description AltAnnotationBasedCountStep()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleanaccept(MatchType type)protected longcount(Segment segment, LocaleId locale)protected longcount(TextContainer textContainer, LocaleId locale)protected longcountInTextUnit(ITextUnit textUnit)protected booleancountOnlyTranslatable()protected Class<? extends BaseCounter>getCounterClass()-
Methods inherited from class net.sf.okapi.steps.wordcount.common.BaseCountStep
getBatchCount, getBatchItemCount, getDescription, getDocumentCount, getGroupCount, getMetric, getName, 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
-
-
-
-
Method Detail
-
getCounterClass
protected Class<? extends BaseCounter> getCounterClass()
-
accept
protected abstract boolean accept(MatchType type)
-
count
protected long count(TextContainer textContainer, LocaleId locale)
- Specified by:
countin classBaseCountStep
-
count
protected long count(Segment segment, LocaleId locale)
- Specified by:
countin classBaseCountStep
-
countOnlyTranslatable
protected boolean countOnlyTranslatable()
- Specified by:
countOnlyTranslatablein classBaseCountStep
-
countInTextUnit
protected long countInTextUnit(ITextUnit textUnit)
- Specified by:
countInTextUnitin classBaseCountStep
-
-