Package opennlp.tools.ml.model
Schnittstelle SequenceClassificationModel
- Alle bekannten Implementierungsklassen:
BeamSearch
public interface SequenceClassificationModel
A classification model that can label an input
Sequence.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T> SequencebestSequence(T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator) Finds theSequencewith the highest probability.<T> Sequence[]bestSequences(int numSequences, T[] sequence, Object[] additionalContext, double minSequenceScore, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator) Finds the n most probablesequenceswith the highest probability.<T> Sequence[]bestSequences(int numSequences, T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator) Finds the n most probablesequenceswith the highest probability.String[]
-
Methodendetails
-
bestSequence
<T> Sequence bestSequence(T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator) Finds theSequencewith the highest probability.- Parameter:
sequence- Thesequenceused as input.additionalContext- An array that provides additional information (context).cg- TheBeamSearchContextGeneratorto use.validator- TheSequenceValidatorto validate with.- Gibt zurück:
- The
Sequencewith the highest probability.
-
bestSequences
<T> Sequence[] bestSequences(int numSequences, T[] sequence, Object[] additionalContext, double minSequenceScore, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator) Finds the n most probablesequenceswith the highest probability.- Parameter:
numSequences- The number of sequences to compute.sequence- Thesequenceused as input.additionalContext- An array that provides additional information (context).minSequenceScore- The minimum score to achieve.cg- TheBeamSearchContextGeneratorto use.validator- TheSequenceValidatorto validate with.- Gibt zurück:
- The
sequenceswith the highest probability.
-
bestSequences
<T> Sequence[] bestSequences(int numSequences, T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator) Finds the n most probablesequenceswith the highest probability.- Parameter:
numSequences- The number of sequences to compute.sequence- Thesequenceused as input.additionalContext- An array that provides additional information (context).cg- TheBeamSearchContextGeneratorto use.validator- TheSequenceValidatorto validate with.- Gibt zurück:
- The
sequenceswith the highest probability.
-
getOutcomes
String[] getOutcomes()- Gibt zurück:
- Retrieves all possible outcomes.
-