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
IOExceptionpublic NameSample read() throws IOException
ObjectStreamread in interface ObjectStream<NameSample>IOException - if there is an error during readingpublic void reset()
throws IOException,
UnsupportedOperationException
ObjectStreamreset in interface ObjectStream<NameSample>IOException - if there is an error during reseting the streamUnsupportedOperationExceptionpublic 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 AutoCloseableclose in interface ObjectStream<NameSample>IOException - if there is an error during closing the streamCopyright © 2017 The Apache Software Foundation. All rights reserved.