Run an Ad-hoc analysis
Run an Ad-hoc analysis of a list of documents.
- application/json
Request Body required
documents object[]
text stringThe document text
id integerThe ID of the document.
- model_id integer
ID of the model
- split boolean
Whether documents should be split into sentences
- 200
- 400
- 401
- 403
- 404
- 500
Analysis is finished
- application/json
- Schema
- Example (from schema)
Schema
- model string
Name of the model used for the analysis
documents object[]
A list of labelled documents
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.
- type string
Possible values: [
ABSA
,CLASS
,LABEL
,CLASSLABEL
]The analysis's classification type.
{
"model": "Hotels Pre-Trained",
"documents": [
{
"text": "Document 1",
"segments": [
{
"text": "Segment 1",
"span": [
0,
9
],
"tags": [
{
"class": "Comfort",
"label": "POS"
}
]
}
]
}
],
"type": "ABSA"
}
The body sent is invalid. Check the error message for more details
User is not authenticated. This means token is either not present or invalid
User does not have the minimal required model role "USER"
No model was found that corresponds to the ID sent
Something is wrong with the API.