|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.formats.ad.ADPOSSampleStream
public class ADPOSSampleStream
Note: Do not use this class, internal use only!
| Constructor Summary | |
|---|---|
ADPOSSampleStream(InputStream in,
String charsetName,
boolean expandME,
boolean includeFeatures)
Creates a new POSSample stream from a InputStream |
|
ADPOSSampleStream(ObjectStream<String> lineStream,
boolean expandME,
boolean includeFeatures)
Creates a new POSSample stream from a line stream, i.e. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 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
public ADPOSSampleStream(InputStream in,
String charsetName,
boolean expandME,
boolean includeFeatures)
POSSample stream from a InputStream
in - 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 tags| Method Detail |
|---|
public POSSample read()
throws IOException
ObjectStream
read in interface ObjectStream<POSSample>IOException
public void reset()
throws IOException,
UnsupportedOperationException
ObjectStream
reset in interface ObjectStream<POSSample>IOException
UnsupportedOperationException
public void close()
throws IOException
ObjectStreamObjectStream and releases all allocated
resources. After close was called its not allowed to call
read or reset.
close in interface ObjectStream<POSSample>IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||