接口 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
Classify the given text.- 参数:
text- Text to classify.- 返回:
- A list of classification categories.
-
classify
Classify the givenTextSegment.- 参数:
textSegment-TextSegmentto classify.- 返回:
- A list of classification categories.
-
classify
Classify the givenDocument.- 参数:
document-Documentto classify.- 返回:
- A list of classification categories.
-