org.cogroo.formats.ad
Class ADExPOSSampleStream
java.lang.Object
org.cogroo.formats.ad.ADExPOSSampleStream
- All Implemented Interfaces:
- opennlp.tools.util.ObjectStream<opennlp.tools.postag.POSSample>
public class ADExPOSSampleStream
- extends Object
- implements opennlp.tools.util.ObjectStream<opennlp.tools.postag.POSSample>
Note: Do not use this class, internal use only!
|
Constructor Summary |
ADExPOSSampleStream(opennlp.tools.util.ObjectStream<String> lineStream,
boolean expandME,
boolean includeFeatures,
boolean additionalContext)
Creates a new POSSample stream from a line stream, i.e. |
|
Method Summary |
void |
close()
|
opennlp.tools.postag.POSSample |
read()
|
void |
reset()
|
ADExPOSSampleStream
public ADExPOSSampleStream(opennlp.tools.util.ObjectStream<String> lineStream,
boolean expandME,
boolean includeFeatures,
boolean additionalContext)
- Creates a new
POSSample stream from a line stream, i.e.
ObjectStream< String>, that could be a
PlainTextByLineStream object.
- Parameters:
lineStream - a stream of lines as StringexpandME - if true will expand the multiword expressions, each word of the
expression will have the POS Tag that was attributed to the
expression plus the prefix B- or I- (CONLL convention)includeFeatures - if true will combine the POS Tag with the feature tags
read
public opennlp.tools.postag.POSSample read()
throws IOException
- Specified by:
read in interface opennlp.tools.util.ObjectStream<opennlp.tools.postag.POSSample>
- Throws:
IOException
reset
public void reset()
throws IOException,
UnsupportedOperationException
- Specified by:
reset in interface opennlp.tools.util.ObjectStream<opennlp.tools.postag.POSSample>
- Throws:
IOException
UnsupportedOperationException
close
public void close()
throws IOException
- Specified by:
close in interface opennlp.tools.util.ObjectStream<opennlp.tools.postag.POSSample>
- Throws:
IOException
Copyright © 2012-2013 CoGrOO. All Rights Reserved.