Class BaseCounter
- java.lang.Object
-
- net.sf.okapi.steps.wordcount.common.BaseCounter
-
- Direct Known Subclasses:
CharacterCounter,WordCounter
public abstract class BaseCounter extends Object
-
-
Constructor Summary
Constructors Constructor Description BaseCounter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longdoCount(Object text, LocaleId language)protected abstract longdoCountImpl(String text, LocaleId language)longdoGetCount(IWithAnnotations res)longdoGetCount(Segment segment)longdoGetCount(TextContainer tc)static longgetCount(IWithAnnotations res, String metricName)static longgetCount(Segment segment, String metricName)static longgetCount(TextContainer tc, String metricName)protected abstract StringgetMetricNameForRetrieval()
-
-
-
Method Detail
-
getMetricNameForRetrieval
protected abstract String getMetricNameForRetrieval()
-
doGetCount
public long doGetCount(Segment segment)
-
getCount
public static long getCount(TextContainer tc, String metricName)
-
doGetCount
public long doGetCount(TextContainer tc)
-
getCount
public static long getCount(IWithAnnotations res, String metricName)
-
doGetCount
public long doGetCount(IWithAnnotations res)
-
-