Documentation Index
Fetch the complete documentation index at: https://api-reference.scale.com/llms.txt
Use this file to discover all available pages before exploring further.
Create Text Collection Task
This endpoint creates a**textcollection** task. In this task, Scale will collect information from the given attachments and/or through the web following the instructions that you provide. Example use cases include labeling structurally-complex data from an attached image or querying sentiment information given a set of links.
This task involves an **attachments** array detailing the attachments to be annotated, and a **fields** parameter which describes all of the different pieces of information to be captured.
The **fields** parameter is an array in which each object has a **field_id**, **type**, and **title**. The **field_id** is the key the annotation will be returned under, and it must be unique within the project. The bulk of the task is defined within this array. It may be helpful to consider building this parameter as similar to building an HTML form.
You can optionally provide additional markdown-enabled or Google Doc-based instructions via the **instruction** parameter.
If successful, Scale will immediately return the generated task object, at which point you could store the **task_id** to have a permanent reference to the task.
The parameters **attachments** and **fields** will be stored in the **params** object of the constructed **task** object.
Create Named Entity Recognition Task
This endpoint creates a new**namedentityrecognition** task. In order to complete this task, our labelers will read the provided text and highlight any text entity mentions that correspond to the specified labels.
Unlike most tasks, these tasks do not require an **attachment** or **attachments** field containing a link to the attachment to be annotated. Instead, the text to be annotated is provided directly within the **text** parameter of the request body itself.
The name of the project to associate this task with. See the Projects Section for more details.
The name of the batch to associate this task with. Note that if a batch is specified, you need not specify the project, as the task will automatically be associated with the batch’s project. For Scale Rapid projects specifying a batch is required. See Batches section for more details.
A markdown-enabled string or iframe embedded Google Doc explaining how to do the task. You can use markdown to show example images, give structure to your instructions, and more. See our instruction best practices for more details. For Scale Rapid projects, DO NOT set this field unless you specifically want to override the project level instructions.
The full url (including the scheme
**http://** or **https://**) or email address of the callback that will be used when the task is completed.The text from which to extract named entities.
An array of TextCollectionAttachment objects to be labeled
An array of NamedEntityRecognitionLabel objects containing descriptions for the text span types to label.
An array of NamedEntityRecognitionRelationshipDefinition objects containing descriptions for the relationships between text spans to annotate.
If true, removes the ‘\n’ characters in the input and do not displays line breaks in the task interface.
If true, allows annotations to overlap. Otherwise, all annotations must cover disjoint text spans.
A arbitrary ID that you can assign to a task and then query for later. This ID must be unique across all projects under your account, otherwise the task submission will be rejected. See Avoiding Duplicate Tasks for more details.
If set to be true, if a task errors out after being submitted, the unique id on the task will be unset. This param allows workflows where you can re-submit the same unique id to recover from errors automatically
Arbitrary labels that you can assign to a task. At most 5 tags are allowed per task. You can query tasks with specific tags through the task retrieval API.