Package opennlp.tools.postag
Class POSSampleEventStream
- java.lang.Object
- 
- opennlp.tools.util.AbstractEventStream<POSSample>
- 
- opennlp.tools.postag.POSSampleEventStream
 
 
- 
- All Implemented Interfaces:
- AutoCloseable,- ObjectStream<Event>
 
 public class POSSampleEventStream extends AbstractEventStream<POSSample> 
- 
- 
Constructor SummaryConstructors Constructor Description POSSampleEventStream(ObjectStream<POSSample> samples)Initializes the current instance with given samples and aDefaultPOSContextGenerator.POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)Initializes the current instance with the given samples and aPOSContextGenerator.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Event>generateEvents(String[] sentence, String[] tags, Object[] additionalContext, POSContextGenerator cg)static List<Event>generateEvents(String[] sentence, String[] tags, POSContextGenerator cg)- 
Methods inherited from class opennlp.tools.util.AbstractEventStreamclose, read, reset
 
- 
 
- 
- 
- 
Constructor Detail- 
POSSampleEventStreampublic POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg) Initializes the current instance with the given samples and aPOSContextGenerator.- Parameters:
- samples- The data stream for this event stream.
- cg- A- POSContextGeneratorto process the event stream- samples.
 
 - 
POSSampleEventStreampublic POSSampleEventStream(ObjectStream<POSSample> samples) Initializes the current instance with given samples and aDefaultPOSContextGenerator.- Parameters:
- samples- The data stream for this event stream.
 
 
- 
 
-