Class BioCodec

Namespace
NOpenNLP.Tools.Namefind
Assembly
NOpenNLP.Tools.dll
public class BioCodec : ISequenceCodec<string>
Inheritance
BioCodec
Implements
Inherited Members

Fields

CONTINUE

public const string CONTINUE = "cont"

Field Value

string

OTHER

public const string OTHER = "other"

Field Value

string

START

public const string START = "start"

Field Value

string

Methods

AreOutcomesCompatible(string[])

Checks if the outcomes of the model are compatible with the codec.

public virtual bool AreOutcomesCompatible(string[] outcomes)

Parameters

outcomes string[]

all possible model outcomes

Returns

bool

CreateSequenceValidator()

Creates a sequence validator which can validate a sequence of outcomes.

public virtual ISequenceValidator<string> CreateSequenceValidator()

Returns

ISequenceValidator<string>

Decode(IList<string>)

Decodes a sequence T objects into Span objects.

public virtual Span[] Decode(IList<string> c)

Parameters

c IList<string>

Returns

Span[]

Encode(Span[], int)

Encodes Span objects into a sequence of T objects.

public virtual string[] Encode(Span[] names, int length)

Parameters

names Span[]
length int

Returns

string[]