Package opennlp.tools.tokenize
Class TokSpanEventStream
- All Implemented Interfaces:
- AutoCloseable,- ObjectStream<Event>
- 
Constructor SummaryConstructorsConstructorDescriptionTokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics) Initializes a new event stream based on the data stream using aTokenContextGeneratorthat relies on aDefaultTokenContextGenerator.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, Pattern alphaNumeric, TokenContextGenerator cg) Initializes a new event stream based on the data stream using aTokenContextGenerator.TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg) Initializes a new event stream based on the data stream using aTokenContextGenerator.
- 
Method SummaryMethods inherited from class opennlp.tools.util.AbstractEventStreamclose, read, reset
- 
Constructor Details- 
TokSpanEventStreampublic TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, Pattern alphaNumeric, TokenContextGenerator cg) Initializes a new event stream based on the data stream using aTokenContextGenerator.- Parameters:
- tokenSamples- The- data streamfor this event stream.
- skipAlphaNumerics- Whether alphanumerics are skipped, or not.
- alphaNumeric- A custom alphanumeric- Patternor- null. Default is:- "^[A-Za-z0-9]+$", provided by- Factory.DEFAULT_ALPHANUMERIC.
- cg- A- TokenContextGeneratorwhich should be used for the event stream- d.
 
- 
TokSpanEventStreampublic TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg) Initializes a new event stream based on the data stream using aTokenContextGenerator.- Parameters:
- tokenSamples- The- data streamfor this event stream.
- skipAlphaNumerics- Whether alphanumerics are skipped, or not.
- cg- A- TokenContextGeneratorwhich should be used for the event stream- d.
 
- 
TokSpanEventStreamInitializes a new event stream based on the data stream using aTokenContextGeneratorthat relies on aDefaultTokenContextGenerator.- Parameters:
- tokenSamples- The- data streamfor this event stream.
- skipAlphaNumerics- Whether alphanumerics are skipped, or not.
 
 
-