opennlp.tools.tokenize
Class TokSpanEventStream

java.lang.Object
  extended by opennlp.model.AbstractEventStream
      extended by opennlp.tools.util.AbstractEventStream<TokenSample>
          extended by opennlp.tools.tokenize.TokSpanEventStream
All Implemented Interfaces:
opennlp.model.EventStream

public class TokSpanEventStream
extends AbstractEventStream<TokenSample>

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
TokSpanEventStream(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
hasNext, next
 
Methods inherited from class opennlp.model.AbstractEventStream
remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples,
                          boolean skipAlphaNumerics)
Initializes the current instance.

Parameters:
tokenSamples -
skipAlphaNumerics -


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.