Class NameSampleCountersStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<opennlp.tools.namefind.NameSample, opennlp.tools.namefind.NameSample>
opennlp.tools.cmdline.namefind.NameSampleCountersStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>
public class NameSampleCountersStream
extends opennlp.tools.util.FilterObjectStream<opennlp.tools.namefind.NameSample, opennlp.tools.namefind.NameSample>
Counts tokens, sentences and names by type.
-
Method Details
-
read
- Throws:
IOException
-
reset
- Specified by:
resetin interfaceopennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>- Overrides:
resetin classopennlp.tools.util.FilterObjectStream<opennlp.tools.namefind.NameSample, opennlp.tools.namefind.NameSample>- Throws:
IOExceptionUnsupportedOperationException
-
getSentenceCount
public int getSentenceCount() -
getTokenCount
public int getTokenCount() -
getNameCounters
-
printSummary
public void printSummary()
-