Package opennlp.tools.doccat
Class DocumentCategorizerEventStream
- java.lang.Object
-
- opennlp.tools.util.AbstractEventStream<DocumentSample>
-
- opennlp.tools.doccat.DocumentCategorizerEventStream
-
- All Implemented Interfaces:
AutoCloseable
,ObjectStream<Event>
public class DocumentCategorizerEventStream extends AbstractEventStream<DocumentSample>
Iterator-like class for modeling document classification events.
-
-
Constructor Summary
Constructors Constructor Description DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
Initializes the current instance.DocumentCategorizerEventStream(ObjectStream<DocumentSample> data, FeatureGenerator... featureGenerators)
Initializes the current instance via samples and feature generators.
-
-
-
Constructor Detail
-
DocumentCategorizerEventStream
public DocumentCategorizerEventStream(ObjectStream<DocumentSample> data, FeatureGenerator... featureGenerators)
Initializes the current instance via samples and feature generators.- Parameters:
data
-ObjectStream
ofDocumentSample
sfeatureGenerators
- the feature generators
-
DocumentCategorizerEventStream
public DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
Initializes the current instance.- Parameters:
samples
-ObjectStream
ofDocumentSample
s
-
-