Class BioNLP2004NameSampleStream

Namespace
NOpenNLP.Tools.Formats
Assembly
NOpenNLP.Tools.dll

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!
public class BioNLP2004NameSampleStream : ObjectStreamBase<NameSample?>, IObjectStream<NameSample?>, IDisposable
Inheritance
BioNLP2004NameSampleStream
Implements
Inherited Members

Constructors

BioNLP2004NameSampleStream(IInputStreamFactory, int)

public BioNLP2004NameSampleStream(IInputStreamFactory @in, int types)

Parameters

in IInputStreamFactory
types int

Exceptions

IOException

if there is an error during reading

Fields

GenerateCelllineEntities

public const int GenerateCelllineEntities = 8

Field Value

int

GenerateCelltypeEntities

public const int GenerateCelltypeEntities = 4

Field Value

int

GenerateDnaEntities

public const int GenerateDnaEntities = 1

Field Value

int

GenerateProteinEntities

public const int GenerateProteinEntities = 2

Field Value

int

GenerateRnaEntities

public const int GenerateRnaEntities = 16

Field Value

int

Methods

Dispose(bool)

Releases the resources from this object stream.

protected override void Dispose(bool disposing)

Parameters

disposing bool

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 null to 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