document-understanding
latest
false
- Démarrage
- Exemples d’utilisation de l’API Cloud Document Understanding™
- Licences
- Résolution des problèmes
Classer un document
Guide de l’API Document Understanding
Dernière mise à jour 12 déc. 2024
Classer un document
Astuce : l’ID de projet est obtenu à partir de la réponse reçue lors de l’appel Obtenir les informations du projet (Get project information).
curl -X 'POST' \
'https://cloud.uipath.com/<Organization_Name>/<Tenant_Name>/du_/api/framework/projects/<Project_ID>/classifiers/ml-classification/classification?api-version=1' \
-H 'accept: text/plain' \
-H 'Authorization: Bearer eyJh***Km6A' \
-H 'Content-Type: application/json' \
-d '{
"documentId": "25a03e48-cfe8-ed11-9f75-000d3a4964af"
}'
curl -X 'POST' \
'https://cloud.uipath.com/<Organization_Name>/<Tenant_Name>/du_/api/framework/projects/<Project_ID>/classifiers/ml-classification/classification?api-version=1' \
-H 'accept: text/plain' \
-H 'Authorization: Bearer eyJh***Km6A' \
-H 'Content-Type: application/json' \
-d '{
"documentId": "25a03e48-cfe8-ed11-9f75-000d3a4964af"
}'
{
"classificationResults": [
{
"documentTypeId": "invoices",
"documentId": "25a03e48-cfe8-ed11-9f75-000d3a4964af",
"confidence": 0.6170391,
"ocrConfidence": -1,
"reference": {
"textStartIndex": 0,
"textLength": 0,
"tokens": []
},
"documentBounds": {
"startPage": 0,
"pageCount": 1,
"textStartIndex": 0,
"textLength": 929
},
"classifierName": "ML Classification (Preview)"
}
]
}
{
"classificationResults": [
{
"documentTypeId": "invoices",
"documentId": "25a03e48-cfe8-ed11-9f75-000d3a4964af",
"confidence": 0.6170391,
"ocrConfidence": -1,
"reference": {
"textStartIndex": 0,
"textLength": 0,
"tokens": []
},
"documentBounds": {
"startPage": 0,
"pageCount": 1,
"textStartIndex": 0,
"textLength": 929
},
"classifierName": "ML Classification (Preview)"
}
]
}