opennlp.tools.postag
Class POSSampleSequenceStream
java.lang.Object
opennlp.tools.postag.POSSampleSequenceStream
- All Implemented Interfaces:
- Iterable<opennlp.model.Sequence>, opennlp.model.SequenceStream
public class POSSampleSequenceStream
- extends Object
- implements opennlp.model.SequenceStream
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 |
POSSampleSequenceStream
public POSSampleSequenceStream(ObjectStream<POSSample> psi)
throws IOException
- Throws:
IOException
POSSampleSequenceStream
public POSSampleSequenceStream(ObjectStream<POSSample> psi,
POSContextGenerator pcg)
throws IOException
- Throws:
IOException
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.