|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.formats.BioNLP2004NameSampleStream
public class BioNLP2004NameSampleStream
Parser for the training files of the BioNLP/NLPBA 2004 shared task.
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!
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
BioNLP2004NameSampleStream(InputStream in,
int types)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public BioNLP2004NameSampleStream(InputStream in,
int types)
| Method Detail |
|---|
public NameSample read()
throws IOException
ObjectStream
read in interface ObjectStream<NameSample>IOException
public void reset()
throws IOException,
UnsupportedOperationException
ObjectStream
reset in interface ObjectStream<NameSample>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<NameSample>IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||