Interface SequenceClassificationModel<T>

  • Type Parameters:
    T -
    All Known Implementing Classes:
    BeamSearch

    public interface SequenceClassificationModel<T>
    A classification model that can label an input sequence.
    • Method Detail

      • bestSequence

        Sequence bestSequence​(T[] sequence,
                              java.lang.Object[] additionalContext,
                              BeamSearchContextGenerator<T> cg,
                              SequenceValidator<T> validator)
        Finds the sequence with the highest probability.
        Parameters:
        sequence -
        additionalContext -
        cg -
        validator -
        Returns:
      • bestSequences

        Sequence[] bestSequences​(int numSequences,
                                 T[] sequence,
                                 java.lang.Object[] additionalContext,
                                 double minSequenceScore,
                                 BeamSearchContextGenerator<T> cg,
                                 SequenceValidator<T> validator)
        Finds the n most probable sequences.
        Parameters:
        sequence -
        additionalContext -
        cg -
        validator -
        Returns:
      • bestSequences

        Sequence[] bestSequences​(int numSequences,
                                 T[] sequence,
                                 java.lang.Object[] additionalContext,
                                 BeamSearchContextGenerator<T> cg,
                                 SequenceValidator<T> validator)
        Finds the n most probable sequences.
        Parameters:
        sequence -
        additionalContext -
        cg -
        validator -
        Returns:
      • getOutcomes

        java.lang.String[] getOutcomes()
        Returns all possible outcomes.
        Returns: