NLP JSON Format
  • 03 Jun 2024
  • Dark
    Light
  • PDF

NLP JSON Format

  • Dark
    Light
  • PDF

Article summary

This page describes NLP (Natural Language Processing) JSON, a data format for describing NLP data in JavaScript Object Notation (JSON). This JSON code includes the entity's data related to our software and its metadata.

Read here about the NLP Annotation Studio.


Format Details

{
	"annotations": [
		{
			"id": "656d8aaacba59433707782ba",
			"datasetId": "62ea41e27cfb8a4efb2fa7bd",
			"itemId": "62ea451334ef443fcad91dc9",
			"url": "https://gate.dataloop.ai/api/v1/annotations/656d8aaacba59433707782ba",
			"item": "https://gate.dataloop.ai/api/v1/items/62ea451334ef443fcad91dc9",
			"dataset": "https://gate.dataloop.ai/api/v1/datasets/62ea41e27cfb8a4efb2fa7bd",
			"type": "text_mark",
			"label": "Subject",
			"attributes": [],
			"metadata": {
				"user": {},
				"system": {
					"status": null,
					"startTime": 0,
					"endTime": 0,
					"frame": 0,
					"endFrame": 1,
					"snapshots_": [],
					"promptId": null,
					"parentId": null,
					"clientId": "b69cb7e8-febe-4454-b6c4-d4b3fb674f66",
					"automated": false,
					"objectId": "19",
					"attributes": {},
					"system": false,
					"itemLinks": [],
					"openAnnotationVersion": "1.71.0-prod.22",
					"recipeId": "62ea41e33b6b9ea21b067327"
				}
			},
			"creator": "lior@dataloop.ai",
			"createdAt": "2023-12-04T08:15:38.936Z",
			"updatedBy": "lior@dataloop.ai",
			"updatedAt": "2023-12-04T08:15:38.936Z",
			"hash": "13f2be696e2887140e30315ed388d3150dc903b3",
			"source": "ui",
			"coordinates": {
				"type": "block",
				"label": "Subject",
				"start": 5,
				"end": 20
			}
		},
		{
			"id": "656d8aaacba59448a67782bb",
			"datasetId": "62ea41e27cfb8a4efb2fa7bd",
			"itemId": "62ea451334ef443fcad91dc9",
			"url": "https://gate.dataloop.ai/api/v1/annotations/656d8aaacba59448a67782bb",
			"item": "https://gate.dataloop.ai/api/v1/items/62ea451334ef443fcad91dc9",
			"dataset": "https://gate.dataloop.ai/api/v1/datasets/62ea41e27cfb8a4efb2fa7bd",
			"type": "text_mark",
			"label": "Subject",
			"attributes": [],
			"metadata": {
				"user": {},
				"system": {
					"status": null,
					"startTime": 0,
					"endTime": 0,
					"frame": 0,
					"endFrame": 1,
					"snapshots_": [],
					"promptId": null,
					"parentId": null,
					"clientId": "a52a42dd-10ee-4071-a71f-86e6c0e31d87",
					"automated": false,
					"objectId": "20",
					"attributes": {},
					"system": false,
					"itemLinks": [],
					"openAnnotationVersion": "1.71.0-prod.22",
					"recipeId": "62ea41e33b6b9ea21b067327"
				}
			},
			"creator": "lior@dataloop.ai",
			"createdAt": "2023-12-04T08:15:38.938Z",
			"updatedBy": "lior@dataloop.ai",
			"updatedAt": "2023-12-04T08:15:38.938Z",
			"hash": "d21b07885eb9d6e8ef43eb90be6d29702835eca9",
			"source": "ui",
			"coordinates": {
				"type": "block",
				"label": "Subject",
				"start": 0,
				"end": 4
			}
		}
	],
	"_id": "62ea451334ef443fcad91dc9",
	"filename": "/Albert Einstein.txt",
	"metadata": {
		"system": {
			"originalname": "Albert Einstein.txt",
			"size": 491,
			"encoding": "7bit",
			"taskStatusLog": [],
			"mimetype": "text/plain",
			"refs": [],
			"isBinary": false
		}
	}
}

Dictionary Table

Key NameDefinitionParent Key
idAnnotation Idannotations
datasetIdDataset Idannotations
itemIdId of the itemannotations
urlAPI URL of the annotationannotations
itemAPI URL of the itemannotations
datasetAPI URL of the datasetannotations
typeAnnotation typeannotations
labelAnnotation labelannotations
attributesAnnotation attributesannotations
metadataInformation about the annotationannotations
userMetadata added by user via SDKmetadata
systemAnnotation system informationmetadata
statusAnnotation status (for example, null/issue/review)system
startTimeStart time of the annotation in the videosystem
endTimeEnd time of the annotation in the videosystem
frameFrame when the annotation appears in the videosystem
endFrameLast frame the annotation appears in the videosystem
snapshots_Snapshot information relevant to video annotationsystem
promptIdan identifier for a specific promptsystem
parentIdId of parent annotationsystem
clientIdAnnotation created in UI (clientId when not saved)system
automatedFalse = Annotation created by automation processsystem
objectIdSequential mark for annotationssystem
attributesInformation about the annotation attributessystem
systemShows if annotation is a system annotationsystem
itemLinksItemLinks are the connection between ‘snapshot’ annotation (like snapping a frame from a video) to the newly created image itemsystem
openAnnotationVersionPlatform versionsystem
recipeIdId of the recipesystem
creatorUser who created the annotationannotations
createdAtDate and time when annotation was createdannotations
updatedByUser who updated the annotationannotations
updatedAtDate and time when annotation was last updatedannotations
hashUsed to map annotation’s data to a stringannotations
sourceWhere the annotation was created: UI/SDKannotations
coordinatesObject of includes 3D cube dataannotations
typeThis indicates the type of coordinates being used. In this case, it's a "block," which suggests a contiguous range of elements.coordinates
labelThis provides a label or identifier for the specified coordinates.coordinates
startThis value defines the starting position of the block of interest. In this case, the block starts at position 0.coordinates
endThis value defines the ending position of the block of interest. In this case, the block ends at position 4.coordinates
idThe item IDannotations
filenameName of the fileannotations
metadataInformation about the annotationannotations
systemAnnotation system informationmetadata
sizeFile sizesystem
encodingClick here to learn about encoding.system
taskStatusLogLogs from the task.system
mimetypeThe mime type of the filesystem
refsThe references of the tasksystem
isBinaryIs the item a binary filesystem