public class BioNLP2004NameSampleStream extends Object implements ObjectStream<NameSample>
The data contains five named entity types: DNA, RNA, protein, cell_type and cell_line.
Data can be found on this web site:
http://www-tsujii.is.s.u-tokyo.ac.jp/GENIA/ERtask/report.html
Note: Do not use this class, internal use only!
Modifier and Type | Field and Description |
---|---|
static int |
GENERATE_CELLLINE_ENTITIES |
static int |
GENERATE_CELLTYPE_ENTITIES |
static int |
GENERATE_DNA_ENTITIES |
static int |
GENERATE_PROTEIN_ENTITIES |
static int |
GENERATE_RNA_ENTITIES |
Constructor and Description |
---|
BioNLP2004NameSampleStream(InputStreamFactory in,
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 static final int GENERATE_DNA_ENTITIES
public static final int GENERATE_PROTEIN_ENTITIES
public static final int GENERATE_CELLTYPE_ENTITIES
public static final int GENERATE_CELLLINE_ENTITIES
public static final int GENERATE_RNA_ENTITIES
public BioNLP2004NameSampleStream(InputStreamFactory in, int types) throws IOException
IOException
public NameSample read() throws IOException
ObjectStream
read
in interface ObjectStream<NameSample>
IOException
- if there is an error during readingpublic void reset() throws IOException, UnsupportedOperationException
ObjectStream
reset
in interface ObjectStream<NameSample>
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<NameSample>
IOException
- if there is an error during closing the streamCopyright © 2018 The Apache Software Foundation. All rights reserved.