AnswerCount

toloka.client.collectors.AnswerCount | Source code

AnswerCount(self, *, uuid: Optional[UUID] = None)

Counts assignments submitted by a Toloker.

Collector use cases.

  • To involve as many Tolokers as possible limit assignments to 1.
  • To improve protection from robots set the limit higher, such as 10% of the pool's tasks.
  • You can filter Tolokers who complete your tasks, so they don't check the tasks in the checking project.

The collector can be used with conditions:

The collector can be used with actions:

Parameters description

ParametersTypeDescription
uuidOptional[UUID]

The ID of a collector. Note that when you clone a pool, both pools start using the same collector, because it is not cloned. Usually, it is not an intended behavior. For example, in this case one collector gathers history size from both pools.

Examples:

The example shows how to mark Tolokers completing any task in the pool so that you can filter them later in the checking project.

new_pool = toloka.client.pool.Pool()
new_pool.quality_control.add_action(
collector=toloka.client.collectors.AnswerCount(),
conditions=[toloka.client.conditions.AssignmentsAcceptedCount > 0],
action=toloka.client.actions.SetSkill(skill_id='11294', skill_value=1),
)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming