public class WordCountStep extends TokenCountStep
| Constructor and Description |
|---|
WordCountStep() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
count(Segment segment,
LocaleId locale) |
protected long |
count(TextContainer textContainer,
LocaleId locale) |
protected boolean |
countOnlyTranslatable() |
String |
getDescription() |
String |
getMetric() |
String |
getName() |
protected String[] |
getTokenNames() |
countInTextUnit, filterTokens, getTokens, getTokensgetBatchCount, getBatchItemCount, getDocumentCount, getGroupCount, getSource, getSubDocumentCount, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleTextUnit, removeFromMetrics, removeFromMetrics, removeFromMetrics, saveCount, saveToMetrics, saveToMetrics, saveToMetricscancel, destroy, getHelpLocation, getParameters, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocalepublic static final String METRIC
public String getMetric()
getMetric in class BaseCountStepprotected String[] getTokenNames()
getTokenNames in class TokenCountStepprotected boolean countOnlyTranslatable()
countOnlyTranslatable in class BaseCountSteppublic String getDescription()
getDescription in interface IPipelineStepgetDescription in class BaseCountSteppublic String getName()
getName in interface IPipelineStepgetName in class BaseCountStepprotected long count(Segment segment, LocaleId locale)
count in class TokenCountStepprotected long count(TextContainer textContainer, LocaleId locale)
count in class TokenCountStepCopyright © 2021. All rights reserved.