Retrieve a specific model that belongs to a project
Path Parameters
- project_id integer required
ID of the project
- model_id integer required
ID of the model
- 200
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- base string
the name of the model used to create the modal that's being changed
- created date-time
creation date
- display_name string
a friendly name.
- uuid uuid
model unique identifier. Should be a UUID value
- id integer
Possible values:
>= 1
The ID of the model
- language string
Possible values: [
en
,de
,ar
]Language of the model
- long_description string
a longer description which proper describes the model
- name string
internal name. It should be unique for a workspace
- owner string
- progress float
- project_id integer
The ID of the project
- score float
model score. As this is a result of a training session, this value shouldn't be touched
- short_description string
a short description to help users quickly identify the model
- status string
Possible values: [
CREATED
,QUEUED
,TRAINING
,FAILED
,READY
,ACTIVE
,PUBLISHED
]the model status
- type string
Possible values: [
ABSA
,CLASS
,LABEL
,CLASSLABEL
]model type (1: BASE, 2: ABSA, 3: LABEL, 4: CLASS, 5: CLASSLABEL))
demoset object[]
A list of documents to be used to demo a model
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.
metrics object
The metrics associated to the model
- classes string[]
All classes that belong to the project
- labels string[]
All labels that belong to the project
{
"base": "Hotel Pre-Trained",
"created": "2023-11-02",
"display_name": "My model 1",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id": 0,
"language": "en",
"long_description": "My model 1 can predict anything I want",
"name": "My model 1",
"owner": "John Doe",
"progress": 6.78,
"project_id": 1,
"score": 0.68,
"short_description": "This is a very short description of My Model 1",
"status": "CREATED",
"type": "ABSA",
"demoset": [
{
"text": "Document 1",
"segments": [
{
"text": "Segment 1",
"span": [
0,
9
],
"tags": [
{
"class": "Comfort",
"label": "POS"
}
]
}
]
}
],
"metrics": {},
"classes": [
"Comfort"
],
"labels": [
"Staff"
]
}
User is not authenticated. This means token is either not present or invalid
User does not have the minimal required project role "VIEWER"
The model or the project was not found
Something is wrong with the API.