public interface DocumentClassifier<T extends AbstractDocumentClassifierConfiguration,U extends AbstractDocumentClassificationRequest>
| Modifier and Type | Method and Description |
|---|---|
DocumentClassificationResponse |
classify(U request)
Classifies a document.
|
DocumentClassificationEvaluationResponse |
evaluate(DocumentClassificationEvaluationRequest request)
Evaluates a document classification model.
|
DocumentClassificationResponse classify(U request) throws DocumentClassifierException
request - A request containing the details of the
document classification request.response containing the results of the
document classification.DocumentClassifierException - Thrown if the document classification fails.DocumentClassificationEvaluationResponse evaluate(DocumentClassificationEvaluationRequest request) throws DocumentClassifierException
request - The request to evaluate.results of the evaluation.DocumentClassifierException - Thrown if the evaluation fails.Copyright © 2018. All rights reserved.