public class TokSpanEventStream extends AbstractEventStream<TokenSample>
TokenSample
s from the given Iterator
and converts the TokenSample
s into Event
s which
can be used by the maxent library for training.Constructor and Description |
---|
TokSpanEventStream(ObjectStream<TokenSample> tokenSamples,
boolean skipAlphaNumerics)
Initializes the current instance.
|
TokSpanEventStream(ObjectStream<TokenSample> tokenSamples,
boolean skipAlphaNumerics,
java.util.regex.Pattern alphaNumeric,
TokenContextGenerator cg)
Initializes the current instance.
|
TokSpanEventStream(ObjectStream<TokenSample> tokenSamples,
boolean skipAlphaNumerics,
TokenContextGenerator cg)
Initializes the current instance.
|
close, read, reset
public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, java.util.regex.Pattern alphaNumeric, TokenContextGenerator cg)
tokenSamples
- skipAlphaNumerics
- cg
- public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics, TokenContextGenerator cg)
tokenSamples
- skipAlphaNumerics
- cg
- public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples, boolean skipAlphaNumerics)
tokenSamples
- skipAlphaNumerics
- Copyright © 2010 - 2020 Adobe. All Rights Reserved