public class POSSampleEventStream extends AbstractEventStream<POSSample>
Constructor and Description |
---|
POSSampleEventStream(ObjectStream<POSSample> samples)
Initializes the current instance with given samples
and a
DefaultPOSContextGenerator . |
POSSampleEventStream(ObjectStream<POSSample> samples,
POSContextGenerator cg)
Initializes the current instance with the given samples and the
given
POSContextGenerator . |
Modifier and Type | Method and Description |
---|---|
static List<Event> |
generateEvents(String[] sentence,
String[] tags,
Object[] additionalContext,
POSContextGenerator cg) |
static List<Event> |
generateEvents(String[] sentence,
String[] tags,
POSContextGenerator cg) |
close, read, reset
public POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)
POSContextGenerator
.samples
- cg
- public POSSampleEventStream(ObjectStream<POSSample> samples)
DefaultPOSContextGenerator
.samples
- Copyright © 2017 The Apache Software Foundation. All rights reserved.