T
- public interface SequenceClassificationModel<T>
Modifier and Type | Method and Description |
---|---|
Sequence |
bestSequence(T[] sequence,
Object[] additionalContext,
BeamSearchContextGenerator<T> cg,
SequenceValidator<T> validator)
Finds the sequence with the highest probability.
|
Sequence[] |
bestSequences(int numSequences,
T[] sequence,
Object[] additionalContext,
BeamSearchContextGenerator<T> cg,
SequenceValidator<T> validator)
Finds the n most probable sequences.
|
Sequence[] |
bestSequences(int numSequences,
T[] sequence,
Object[] additionalContext,
double minSequenceScore,
BeamSearchContextGenerator<T> cg,
SequenceValidator<T> validator)
Finds the n most probable sequences.
|
String[] |
getOutcomes()
Returns all possible outcomes.
|
Sequence bestSequence(T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)
sequence
- additionalContext
- cg
- validator
- Sequence[] bestSequences(int numSequences, T[] sequence, Object[] additionalContext, double minSequenceScore, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)
sequence
- additionalContext
- cg
- validator
- Sequence[] bestSequences(int numSequences, T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)
sequence
- additionalContext
- cg
- validator
- String[] getOutcomes()
Copyright © 2020 The Apache Software Foundation. All rights reserved.