opennlp.tools.postag
Class POSSampleSequenceStream

java.lang.Object
  extended by opennlp.tools.postag.POSSampleSequenceStream
All Implemented Interfaces:
Iterable<opennlp.model.Sequence>, opennlp.model.SequenceStream

public class POSSampleSequenceStream
extends Object
implements opennlp.model.SequenceStream


Constructor Summary
POSSampleSequenceStream(ObjectStream<POSSample> psi)
           
POSSampleSequenceStream(ObjectStream<POSSample> psi, POSContextGenerator pcg)
           
 
Method Summary
 Iterator<opennlp.model.Sequence> iterator()
           
 opennlp.model.Event[] updateContext(opennlp.model.Sequence sequence, opennlp.model.AbstractModel model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSSampleSequenceStream

public POSSampleSequenceStream(ObjectStream<POSSample> psi)
                        throws IOException
Throws:
IOException

POSSampleSequenceStream

public POSSampleSequenceStream(ObjectStream<POSSample> psi,
                               POSContextGenerator pcg)
                        throws IOException
Throws:
IOException
Method Detail

updateContext

public opennlp.model.Event[] updateContext(opennlp.model.Sequence sequence,
                                           opennlp.model.AbstractModel model)
Specified by:
updateContext in interface opennlp.model.SequenceStream

iterator

public Iterator<opennlp.model.Sequence> iterator()
Specified by:
iterator in interface Iterable<opennlp.model.Sequence>


Copyright © 2010. All Rights Reserved.