E
- Enum that is the result of classification.public interface TextClassifier<E extends Enum<E>>
Modifier and Type | Method and Description |
---|---|
default List<E> |
classify(Document document)
Classify the given
Document . |
List<E> |
classify(String text)
Classify the given text.
|
default List<E> |
classify(TextSegment textSegment)
Classify the given
TextSegment . |
List<E> classify(String text)
text
- Text to classify.default List<E> classify(TextSegment textSegment)
TextSegment
.textSegment
- TextSegment
to classify.Copyright © 2023. All rights reserved.