Interface IBeamSearchContextGenerator<T>

Namespace
NOpenNLP.Tools.Util
Assembly
NOpenNLP.Tools.dll

Interface for context generators used with a sequence beam search.

public interface IBeamSearchContextGenerator<in T>

Type Parameters

T

Methods

GetContext(int, T[], string[], object[])

Returns the context for the specified position in the specified sequence (list).

string[] GetContext(int index, T[] sequence, string[] priorDecisions, object[] additionalContext)

Parameters

index int

The index of the sequence.

sequence T[]

The sequence of items over which the beam search is performed.

priorDecisions string[]

The sequence of decisions made prior to the context for which this decision is being made.

additionalContext object[]

Any addition context specific to a class implementing this interface.

Returns

string[]

the context for the specified position in the specified sequence.