Package opennlp.tools.tokenize
Class TokSpanEventStream
- All Implemented Interfaces:
AutoCloseable,ObjectStream<Event>
This class reads the
TokenSamples from the given Iterator
and converts the TokenSamples into Events which
can be used by the maxent library for training.-
Constructor Summary
ConstructorsConstructorDescriptionTokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics) Initializes the current instance.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, Pattern alphaNumeric, TokenContextGenerator cg) Initializes the current instance.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg) Initializes the current instance. -
Method Summary
Methods inherited from class opennlp.tools.util.AbstractEventStream
close, read, reset
-
Constructor Details
-
TokSpanEventStream
public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, Pattern alphaNumeric, TokenContextGenerator cg) Initializes the current instance.- Parameters:
tokenSamples-skipAlphaNumerics-cg-
-
TokSpanEventStream
public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg) Initializes the current instance.- Parameters:
tokenSamples-skipAlphaNumerics-cg-
-
TokSpanEventStream
Initializes the current instance.- Parameters:
tokenSamples-skipAlphaNumerics-
-