Classification Data
Introduction
Classification data are the results of the classification process. Each object contains the span of the text that was classified, the label, the confidence, and the type of classification. They represent one match of a pattern or a detected label from a model.
Format
Classification data are received inside an Array()
.
Key | Type | Description |
---|---|---|
span | Span [] | An array of span objects. |
label | String [] | An array of label objects. |
confidence | Number | A number between 0 and 1. |
type | String | The type of the classification. |
pattern_id | String | The ID of the pattern. |
pattern_name | String | The name of the pattern. |
Example
{ "span": [ { "indexes": [2699, 2715], "source_pure": "entre en vigueur" }, { "indexes": [2728, 2742], "source_pure": "1 janvier 2022" } ], "label": ["date d'effet"], "confidence": 1, "type": "pattern", "pattern_id": "636a7d416d18c90025fa03e2", "pattern_name": "date d'effet_1" }