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, next
remove
public DocumentCategorizerEventStream(ObjectStream<DocumentSample> data, FeatureGenerator... featureGenerators)
data
- ObjectStream
of DocumentSample
sfeatureGenerators
- public DocumentCategorizerEventStream(ObjectStream<DocumentSample> samples)
samples
- ObjectStream
of DocumentSample
sprotected Iterator<Event> createEvents(DocumentSample sample)
AbstractEventStream
createEvents
in class AbstractEventStream<DocumentSample>
sample
- the sample for which training Event
s
are be created.Iterator
of training events or
an empty Iterator
.Copyright © 2019 The Apache Software Foundation. All rights reserved.