Interface ISequenceCodec<T>

Namespace
NOpenNLP.Tools.Util
Assembly
NOpenNLP.Tools.dll
public interface ISequenceCodec<T>

Type Parameters

T

Methods

AreOutcomesCompatible(string[])

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

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.

ISequenceValidator<T> CreateSequenceValidator()

Returns

ISequenceValidator<T>

Decode(IList<T>)

Decodes a sequence T objects into Span objects.

Span[] Decode(IList<T> c)

Parameters

c IList<T>

Returns

Span[]

Encode(Span[], int)

Encodes Span objects into a sequence of T objects.

T[] Encode(Span[] names, int length)

Parameters

names Span[]
length int

Returns

T[]