We also support Custom API in case you want to use your own model for ML-assisted labeling by simply providing the API URL. Ensure your custom API follows the required request structure to integrate smoothly with the Datasaur platform. Here’s how to set it up:
Setting Up Your Custom API for ML-Assisted Labeling
Create an API: Build an API for your model that adheres to a specific request and response format compatible with the Datasaur App. For guidance, refer to the API Creation Example.
Request and response structure: You can find example request and response body near the API URL input field or in the examples below.
Enter your API URL: Once your API is ready, fill in the API URL in the designated field under the extension.
For span labeling project
Sentences per request (0 = all): Determine how many text you want to include in 1 request to your API service.
For row labeling project
Target text: Choose the text input that your model will use as a reference.
Target question: Select the output column your model will predict.
Faster prediction speed: Optionally, toggle this feature to run predictions faster via the backend.
Confidence score: Adjust the value according to your needs.
Apply labels: After setting up, click Predict labels to automatically apply labels to your document based on your model's predictions.
Custom API for Span Based
ML-assisted labeling with Custom API for span labeling
Request BodyResponse Body
Custom API for Row Based
ML-assisted labeling with Custom API for row labeling
Request BodyResponse Body
Custom API for Bounding Box Labeling
ML-assisted labeling with Custom API for bounding box labeling
Request BodyResponse Body
Custom API for Document Based
ML-assisted labeling with Custom API for document labeling