Package opennlp.tools.postag
Class POSSampleEventStream
- All Implemented Interfaces:
- AutoCloseable,- ObjectStream<Event>
- 
Constructor SummaryConstructorsConstructorDescriptionPOSSampleEventStream(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 SummaryModifier and TypeMethodDescriptiongenerateEvents(String[] sentence, String[] tags, Object[] additionalContext, POSContextGenerator cg) generateEvents(String[] sentence, String[] tags, POSContextGenerator cg) Methods inherited from class opennlp.tools.util.AbstractEventStreamclose, read, reset
- 
Constructor Details- 
POSSampleEventStreamInitializes 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.
 
- 
POSSampleEventStreamInitializes the current instance with given samples and aDefaultPOSContextGenerator.- Parameters:
- samples- The data stream for this event stream.
 
 
- 
- 
Method Details- 
generateEvents
- 
generateEvents
 
-