Interface IBeamSearchContextGenerator<T>
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
indexintThe index of the sequence.
sequenceT[]The sequence of items over which the beam search is performed.
priorDecisionsstring[]The sequence of decisions made prior to the context for which this decision is being made.
additionalContextobject[]Any addition context specific to a class implementing this interface.
Returns
- string[]
the context for the specified position in the specified sequence.