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
public class BioNLP2004NameSampleStream : ObjectStreamBase<NameSample?>, IObjectStream<NameSample?>, IDisposable
- Inheritance
-
BioNLP2004NameSampleStream
- Implements
- Inherited Members
Constructors
BioNLP2004NameSampleStream(IInputStreamFactory, int)
public BioNLP2004NameSampleStream(IInputStreamFactory @in, int types)
Parameters
inIInputStreamFactorytypesint
Exceptions
- IOException
if there is an error during reading
Fields
GenerateCelllineEntities
public const int GenerateCelllineEntities = 8
Field Value
GenerateCelltypeEntities
public const int GenerateCelltypeEntities = 4
Field Value
GenerateDnaEntities
public const int GenerateDnaEntities = 1
Field Value
GenerateProteinEntities
public const int GenerateProteinEntities = 2
Field Value
GenerateRnaEntities
public const int GenerateRnaEntities = 16
Field Value
Methods
Dispose(bool)
Releases the resources from this object stream.
protected override void Dispose(bool disposing)
Parameters
disposingbool
Read()
Returns the next object. Calling this method repeatedly until it returns
null will return each object from the underlying source exactly once.
public override NameSample? Read()
Returns
- NameSample
the next object or
nullto signal that the stream is exhausted
Exceptions
- IOException
if there is an error during reading
- IOException
if there is an error during reading
Reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. This method can be used to re-read the stream if multiple passes over the objects are required.
The implementation of this method is optional.
public override void Reset()
Exceptions
- IOException
if there is an error during resetting the stream
- NotSupportedException
if reset is not supported on this stream
- IOException
if there is an error during resetting the stream