Interface SequenceLabeler<T>

Type Parameters:
T - the data type of model input objects.
All Superinterfaces:
Serializable
All Known Implementing Classes:
CRFLabeler, HMMLabeler

public interface SequenceLabeler<T> extends Serializable
A sequence labeler assigns a class label to each position of the sequence.
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    predict(T[] x)
    Predicts the sequence labels.
  • Method Details

    • predict

      int[] predict(T[] x)
      Predicts the sequence labels.
      Parameters:
      x - the sequence. At each position, it may be the original symbol or a feature set about the symbol, its neighborhood, and/or other information.
      Returns:
      the sequence labels.