Obtaining the Labeling Job List of a Dataset
Obtain the labeling job list of a dataset.
dataset.get_label_tasks(is_workforce_task=False, **kwargs)
Sample Code
- Example 1: Obtain all labeling jobs of a dataset and sort the jobs by creation time in descending order.
from modelarts.session import Session from modelarts.dataset import Dataset session = Session() dataset = Dataset(session,dataset_id="VukxA2FlaTUm7tkDtq0") list_label_task_resp = dataset.get_label_tasks(sort_key="create_time", sort_dir="desc") print(list_label_task_resp)
- Example 2: Obtain all team labeling jobs of a dataset.
list_label_task_resp = dataset.get_label_tasks(is_workforce_task=True) print(list_label_task_resp)
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
is_workforce_task |
No |
Boolean |
Filter criteria, specifying whether to obtain only team labeling jobs
|
sort_key |
No |
String |
Field for sorting. Options:
|
sort_dir |
No |
String |
Sorting method. Options:
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.