crowdflower.unit¶
-
class
crowdflower.unit.
Unit
(job, client=None, **data)¶ CrowdFlower Unit.
Documentation for attributes can be found at http://success.crowdflower.com/customer/portal/articles/1621707 .
Parameters: - job (crowdflower.job.Job) –
Job
instance owning thisUnit
- client (crowdflower.client.Client) –
Client
instance - data (dict) – Unit JSON dictionary
-
cancel
()¶ Cancel unit.
-
get_aggregate
(key, default=None)¶ Get aggregated result for
key
, or returndefault
.Parameters: - key (str) – Name of result value.
- default – Default value in case the given key is not found.
-
results
¶ Get unit results, if available. RO attribute.
- job (crowdflower.job.Job) –