This API is used to query the report of a team labeling acceptance task.
GET /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/report
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
dataset_id |
Yes |
String |
Dataset ID. |
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
workforce_task_id |
Yes |
String |
ID of a team labeling task. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
checking_task_id |
Yes |
String |
ID of the task that is being checked. |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
checking_stats |
CheckTaskStats object |
Real-time acceptance statistics. |
total_stats |
CheckTaskStats object |
Historical statistics. |
Parameter |
Type |
Description |
|---|---|---|
accepted_sample_count |
Integer |
Accepted samples. |
checked_sample_count |
Integer |
Checked samples. |
pass_rate |
Double |
Pass rate of samples. |
rejected_sample_count |
Integer |
Rejected samples. |
sampled_sample_count |
Integer |
Number of sampled samples. |
sampling_num |
Integer |
Samples of an acceptance task. |
sampling_rate |
Double |
Sampling rate of an acceptance task. |
score |
String |
Acceptance score. |
task_id |
String |
ID of an acceptance task. |
total_sample_count |
Integer |
Total samples. |
total_score |
Long |
Total acceptance score. |
unchecked_sample_count |
Integer |
Unchecked samples. |
Querying the Report of a Team Labeling Acceptance Task
GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance/report
Status code: 200
OK
{
"total_stats" : {
"sampling_rate" : 1.0,
"sampling_num" : 3,
"pass_rate" : 0.0,
"score" : "E",
"total_score" : 0,
"total_sample_count" : 3,
"sampled_sample_count" : 3,
"unchecked_sample_count" : 3,
"checked_sample_count" : 0,
"accepted_sample_count" : 0,
"rejected_sample_count" : 0
}
}
Status Code |
Description |
|---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
See Error Codes.