Annotation Layers
Annotation layers are containers for annotations and can be used to "version" annotations and experiment outputs.
post
https://api.annolab.ai
/v1/layer/create
Create Annotation Layer
Examples of how to make a layer create request
Python
import requests
ANNO_LAB_API_KEY = 'XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX'
layer = {
'projectIdentifier': 'New NER Project',
'layerName': 'NER Gold'
'isGold': True,
'description': 'Use the NER Schema for this layer. Only "approved" annotations should be kept in this layer'
}
headers = {
'Authorization': 'Api-Key '+ANNO_LAB_API_KEY,
}
url = 'https://api.annolab.ai/v1/layer/create'
response = requests.post(url, headers=headers, json=layer)
print(response.json())
Copy link