Span
Introduction
Classification spans are the different parts of the text that are classified. They each containe enough information to identify the text they are associated with.
Format
Key | Type | Description |
---|---|---|
indexes | Array() | An array of two integers representing the indexes of the first and last characters of the span. |
source_pure | String | The text of the span. |
Example
[ { "indexes": [2699, 2715], "source_pure": "entre en vigueur" }, { "indexes": [2728, 2742], "source_pure": "1 janvier 2022" } ]
Next steps
xxxxxxxxxx
1
54
---
title: "Span Schema: Classification – Lettria API"
description: Classification spans are the different parts of the text that are classified. This is the schema for how they are organised as an array of span objects.
---
# Span
## Introduction
Classification spans are the different parts of the text that are classified.
They each containe enough information to identify the text they are associated with.
## Format
{% table %}
- Key
- Type
- Description {% width="40%" %}
---
- `indexes`
- `Array()`
- An array of two integers representing the indexes of the first and last characters of the span.
---
- `source_pure`
- `String`
- The text of the span.
---
{% /table %}
## Example
```json
[
{
"indexes": [2699, 2715],
"source_pure": "entre en vigueur"
},
{ "indexes": [2728, 2742], "source_pure": "1 janvier 2022" }
]
```
{% /table %}
## Next steps
- [Classification Metadata](/api-reference/classification/2.0/schemas/metadata)