public class BioNLP2004NameSampleStream extends java.lang.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) |
BioNLP2004NameSampleStream(java.io.InputStream in,
int types)
Deprecated.
|
| 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 java.io.IOException
java.io.IOException@Deprecated
public BioNLP2004NameSampleStream(java.io.InputStream in,
int types)
public 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