public class Conll03NameSampleStream extends java.lang.Object implements ObjectStream<NameSample>
| Modifier and Type | Class and Description |
|---|---|
static class |
Conll03NameSampleStream.LANGUAGE |
| Constructor and Description |
|---|
Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang,
InputStreamFactory in,
int types) |
Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang,
java.io.InputStream in,
int types)
Deprecated.
|
Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang,
ObjectStream<java.lang.String> lineStream,
int types) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the
ObjectStream and releases all allocated
resources. |
NameSample |
read()
Returns the next object.
|
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence
will be repeated exactly.
|
public Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, ObjectStream<java.lang.String> lineStream, int types)
lang - the language of the CONLL 03 datalineStream - an Object Stream over the lines in the CONLL 03 data filetypes - the entity types to include in the Name Sample object streampublic Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, InputStreamFactory in, int types) throws java.io.IOException
java.io.IOException@Deprecated public Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, java.io.InputStream in, int types)
lang - the language of the CONLL 03 datain - the Input Stream to read the data filetypes - the entity types to include in the Name Sample object streampublic NameSample read() throws java.io.IOException
ObjectStreamread in interface ObjectStream<NameSample>java.io.IOException - if there is an error during readingpublic void reset()
throws java.io.IOException,
java.lang.UnsupportedOperationException
ObjectStreamreset in interface ObjectStream<NameSample>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<NameSample>java.io.IOException - if there is an error during closing the streamCopyright © 2010 - 2019 Adobe. All Rights Reserved