接口 TextClassifier<E extends Enum<E>>

类型参数:
E - Enum that is the result of classification.

public interface TextClassifier<E extends Enum<E>>
Classifies given text according to specified enum.
  • 方法详细资料

    • classify

      List<E> classify(String text)
      Classify the given text.
      参数:
      text - Text to classify.
      返回:
      A list of classification categories.
    • classify

      default List<E> classify(TextSegment textSegment)
      Classify the given TextSegment.
      参数:
      textSegment - TextSegment to classify.
      返回:
      A list of classification categories.
    • classify

      default List<E> classify(Document document)
      Classify the given Document.
      参数:
      document - Document to classify.
      返回:
      A list of classification categories.