public class DocumentCategorizerEventStream extends AbstractEventStream<DocumentSample>
| Constructor and Description |
|---|
DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
Initializes the current instance.
|
DocumentCategorizerEventStream(ObjectStream<DocumentSample> data,
FeatureGenerator... featureGenerators)
Initializes the current instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<Event> |
createEvents(DocumentSample sample)
Creates events for the provided sample.
|
hasNext, nextremovepublic DocumentCategorizerEventStream(ObjectStream<DocumentSample> data, FeatureGenerator... featureGenerators)
data - ObjectStream of DocumentSamplesfeatureGenerators - public DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
samples - ObjectStream of DocumentSamplesprotected Iterator<Event> createEvents(DocumentSample sample)
AbstractEventStreamcreateEvents in class AbstractEventStream<DocumentSample>sample - the sample for which training Events
are be created.Iterator of training events or
an empty Iterator.Copyright © 2016 The Apache Software Foundation. All rights reserved.