Attach text URLs

You can import texts to Text Projects by linking them from external storages. The linked texts are displayed in SuperAnnotate, but they aren't stored in our local servers. For that, you need to enable CORS in your storage or enable the CORS Unblock extension.

Enable CORS

Step 1: Enable CORS in your storage

Enable Cross-Origin Resource Sharing (CORS) for the storages you'll be using.

Step 2: Create a CSV file containing the text URLs

Create a CSV file that contains the text URLs. Use this template CSV file as a reference.

KeyRequired/OptionalValue
urlRequiredText URL
nameOptionalText name

📘

If the text name field is empty, a name ID will be generated based on the row ID and a random UUID.

Step 3: Attach text URLs via Python SDK

Attach the texts to your project with this SDK command.

sa.attach_items(
    project = "Project Name", 
    attachments = "./text.csv",
    annotation_status = "QualityCheck")
superannotatecli attach-document-urls --project “Project Name/Folder Name” --attachments “./documents.csv” --annotation_status “QualityCheck”

Upload texts from an integrated cloud storage

To upload texts from an integrated cloud storage:

sa.attach_items_from_integrated_storage(
   project= "Project Name",
   integration= {integration_meta},
   folder_path= "storage_folder_name")

Learn how to create integrations.