public class ADPOSSampleStream extends java.lang.Object implements ObjectStream<POSSample>
| Constructor and Description |
|---|
ADPOSSampleStream(InputStreamFactory in,
java.lang.String charsetName,
boolean expandME,
boolean includeFeatures)
Creates a new
POSSample stream from a InputStream |
ADPOSSampleStream(java.io.InputStream in,
java.lang.String charsetName,
boolean expandME,
boolean includeFeatures)
Deprecated.
|
ADPOSSampleStream(ObjectStream<java.lang.String> lineStream,
boolean expandME,
boolean includeFeatures)
Creates a new
POSSample stream from a line stream, i.e. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
ObjectStream and releases all allocated
resources. |
POSSample |
read()
Returns the next object.
|
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence
will be repeated exactly.
|
public ADPOSSampleStream(ObjectStream<java.lang.String> lineStream, boolean expandME, boolean includeFeatures)
POSSample stream from a line stream, i.e.
ObjectStream<String>, that could be a
PlainTextByLineStream object.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 tagspublic ADPOSSampleStream(InputStreamFactory in, java.lang.String charsetName, boolean expandME, boolean includeFeatures) throws java.io.IOException
POSSample stream from a InputStreamin - the Corpus InputStreamcharsetName - the charset of the Arvores Deitadas CorpusexpandME - 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 tagsjava.io.IOException@Deprecated
public ADPOSSampleStream(java.io.InputStream in,
java.lang.String charsetName,
boolean expandME,
boolean includeFeatures)
POSSample stream from a InputStreamin - the Corpus InputStreamcharsetName - the charset of the Arvores Deitadas CorpusexpandME - 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 tagspublic POSSample read() throws java.io.IOException
ObjectStreamread in interface ObjectStream<POSSample>java.io.IOException - if there is an error during readingpublic void reset()
throws java.io.IOException,
java.lang.UnsupportedOperationException
ObjectStreamreset in interface ObjectStream<POSSample>java.io.IOException - if there is an error during reseting the streamjava.lang.UnsupportedOperationExceptionpublic void close()
throws java.io.IOException
ObjectStreamObjectStream and releases all allocated
resources. After close was called its not allowed to call
read or reset.close in interface java.lang.AutoCloseableclose in interface ObjectStream<POSSample>java.io.IOException - if there is an error during closing the streamCopyright © 2010 - 2019 Adobe. All Rights Reserved