Package opennlp.tools.postag
Class POSSampleEventStream
- All Implemented Interfaces:
AutoCloseable,ObjectStream<Event>
-
Constructor Summary
ConstructorsConstructorDescriptionPOSSampleEventStream(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 the givenPOSContextGenerator. -
Method Summary
Modifier and TypeMethodDescriptiongenerateEvents(String[] sentence, String[] tags, Object[] additionalContext, POSContextGenerator cg) generateEvents(String[] sentence, String[] tags, POSContextGenerator cg) Methods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset
-
Constructor Details
-
POSSampleEventStream
Initializes the current instance with the given samples and the givenPOSContextGenerator.- Parameters:
samples-cg-
-
POSSampleEventStream
Initializes the current instance with given samples and aDefaultPOSContextGenerator.- Parameters:
samples-
-
-
Method Details
-
generateEvents
-
generateEvents
-