it can be used.

Argilla Annotator Stack ComponentOur Argilla annotator component inherits from the BaseAnnotator class. There are some methods that are core methods that must be defined, like being able to register or get a dataset. Most annotators handle things like the storage of state and have their own custom features, so there are quite a few extra methods specific to Argilla.

The core Argilla functionality that's currently enabled includes a way to register your datasets, export any annotations for use in separate steps as well as start the annotator daemon process. (Argilla requires a server to be running in order to use the web interface, and ZenML handles the connection to this server using the details you passed in when registering the component.)

Argilla Annotator SDK

Visit the SDK docs to learn more about the methods that ZenML exposes for the Argilla annotator. To access the SDK through Python, you would first get the client object and then call the methods you need. For example:

from zenml.client import Client

client = Client()

annotator = client.active_stack.annotator

# list dataset names

dataset_names = annotator.get_dataset_names()

# get a specific dataset

dataset = annotator.get_dataset("dataset_name")

# get the annotations for a dataset

annotations = annotator.get_labeled_data(dataset_name="dataset_name")

For more detailed information on how to use the Argilla annotator and the functionality it provides, visit the Argilla documentation.

PreviousAnnotators

NextLabel Studio

Last updated 19 days ago