Comment on page
Annotation Types
Annotation types are the valid annotation labels that can be applied to source material.
post
https://api.annolab.ai
/v1/annotation-type/create
Create Annotation Type
This code shows how to create a new annotation type
Python
import requests
ANNO_LAB_API_KEY = 'XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX'
annotationType = {
'projectIdentifier': 'New NER Project',
'category': 'NER',
'typeName': 'Place Name'
}
headers = {
'Authorization': 'Api-Key '+ANNO_LAB_API_KEY,
}
url = 'https://api.annolab.ai/v1/annotation-type/create'
response = requests.post(url, headers=headers, json=annotationType)
print(response.json())