List all analysis from a model
List all analysis from a model.The list of documents can be filtered by providing query parameters such as 'search' , 'classes', 'labels', 'details' or paginated with 'offset' and 'limit'. The pagination should be done by increasing the offset by the value of limit until the property has_more is false
Path Parameters
- model_id integer required
ID of the model
Query Parameters
- offset integer
An offset is simply the number of records you wish to skip before selecting records.
- limit integer
Limit of entries that should be returned.
- 200
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
analyses object[]
List of objects that represent the analyss.
created date-timeThe date and time the analysis was started
finished date-timeThe date and time the analysis has finished.
document_count integerTotal of documents
uuid uuidThe UUID of the analysis.
id integerThe ID of the analysis.
name stringThe name of the analysis.
progress floatThe progress of the analysis.
model_id integerThe ID of the model used by that analysis.
status stringPossible values: [
CREATED
,QUEUED
,STARTED
,ANALYZING
,FAILED
,FINISHED
]The status of the analysis.
type stringPossible values: [
ABSA
,CLASS
,LABEL
,CLASSLABEL
]The classification type of the analysis.
description stringThe description of the analysis.
classes object[]
All classes that belong to the analysis.
name stringThe class's name.
example stringA usage example.
description stringThe class's description to help the annotator.
id integerThe ID of the label
labels object[]
All labels that belong to the analysis.
id integerThe ID of the label
name stringThe label's name.
documents object[]
List of documents of the analysis.
text stringThe document text
segments object[]
list of segments
text stringThe segment text
span integer[]The interval at which the segment occurs in the original document
tags object[]
A list of tags
class stringThe class's name.
label stringThe label's name.
- has_more boolean
indicates if a new request with a different offset should be done to get more models.
- offset integer
An offset is simply the number of records you wish to skip before selecting records.
- limit integer
Limit of entries that should be returned.
- count integer
Number of objects returned
{
"analyses": [
{
"created": "2023-11-02",
"finished": "2023-11-02",
"document_count": 100,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"id": 1,
"name": "This is my first analysis",
"progress": 87.7,
"model_id": 10,
"status": "CREATED",
"type": "ABSA",
"description": "string",
"classes": [
{
"name": "Comfort",
"example": "This is a good example",
"description": "This is a good description",
"id": 1
}
],
"labels": [
{
"id": 1,
"name": "POS"
}
],
"documents": [
{
"text": "Document 1",
"segments": [
{
"text": "Segment 1",
"span": [
0,
9
],
"tags": [
{
"class": "Comfort",
"label": "POS"
}
]
}
]
}
]
}
],
"has_more": true,
"offset": 0,
"limit": 10,
"count": 10
}
User is not authenticated. This means token is either not present or invalid
Something is wrong with the API.