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, getTokenscomponent_init, getBatchCount, 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, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setSourceLocale, setTargetLocalecomponent_done, getParameters, getParameters, getParametersClassName, setParametersexec, setDescription, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParameterspublic 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 interface net.sf.okapi.lib.extra.IComponentgetDescription in class BaseCountSteppublic String getName()
getName in interface IPipelineStepgetName in interface net.sf.okapi.lib.extra.IComponentgetName 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.