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) –
Jobinstance owning thisUnit - client (crowdflower.client.Client) –
Clientinstance - data (dict) – Unit JSON dictionary
-
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) –