public class ADPOSSampleStream extends Object implements ObjectStream<POSSample>
Constructor and Description |
---|
ADPOSSampleStream(InputStreamFactory in,
String charsetName,
boolean expandME,
boolean includeFeatures)
Creates a new
POSSample stream from a InputStream |
ADPOSSampleStream(InputStream in,
String charsetName,
boolean expandME,
boolean includeFeatures)
Deprecated.
|
ADPOSSampleStream(ObjectStream<String> lineStream,
boolean expandME,
boolean includeFeatures)
Creates a new
POSSample stream from a line stream, i.e. |
public ADPOSSampleStream(ObjectStream<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 String
expandME
- 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, String charsetName, boolean expandME, boolean includeFeatures) throws IOException
POSSample
stream from a InputStream
in
- the Corpus InputStream
charsetName
- 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 tagsIOException
@Deprecated public ADPOSSampleStream(InputStream in, String charsetName, boolean expandME, boolean includeFeatures)
POSSample
stream from a InputStream
in
- the Corpus InputStream
charsetName
- 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 IOException
ObjectStream
read
in interface ObjectStream<POSSample>
IOException
- if there is an error during readingpublic void reset() throws IOException, UnsupportedOperationException
ObjectStream
reset
in interface ObjectStream<POSSample>
IOException
- if there is an error during reseting the streamUnsupportedOperationException
public void close() throws IOException
ObjectStream
ObjectStream
and releases all allocated
resources. After close was called its not allowed to call
read or reset.close
in interface AutoCloseable
close
in interface ObjectStream<POSSample>
IOException
- if there is an error during closing the streamCopyright © 2015 The Apache Software Foundation. All rights reserved.