ActiveCrowdToolkit  0.1
CrowdsourcingModels.Datum Class Reference

This class represents a single datum, and has methods to read in data. More...

Static Public Member Functions

static IList< DatumLoadData (string filename)
 Loads the data file in the format (worker id, task id, worker label, ?gold label). More...
 
static IList< DatumShuffle (IList< Datum > data)
 Shuffle a data list More...
 

Public Attributes

string WorkerId
 The worker id. More...
 
string TaskId
 The task id. More...
 
int WorkerLabel
 The worker's label. More...
 
int GoldLabel
 The task's gold label (optional). More...
 
double TimeSpent
 The time spent by the worker to produce the label (optional) More...
 
string BodyText
 The body text of the document (optional - only for text sentiment labelling tasks). More...
 

Detailed Description

This class represents a single datum, and has methods to read in data.

Member Function Documentation

static IList<Datum> CrowdsourcingModels.Datum.LoadData ( string  filename)
inlinestatic

Loads the data file in the format (worker id, task id, worker label, ?gold label).

Parameters
filenameThe data file.
Returns
The list of parsed data.
static IList<Datum> CrowdsourcingModels.Datum.Shuffle ( IList< Datum data)
inlinestatic

Shuffle a data list

Parameters
dataThe data list
Returns
The shuffled data list

Member Data Documentation

string CrowdsourcingModels.Datum.BodyText

The body text of the document (optional - only for text sentiment labelling tasks).

int CrowdsourcingModels.Datum.GoldLabel

The task's gold label (optional).

string CrowdsourcingModels.Datum.TaskId

The task id.

double CrowdsourcingModels.Datum.TimeSpent

The time spent by the worker to produce the label (optional)

string CrowdsourcingModels.Datum.WorkerId

The worker id.

int CrowdsourcingModels.Datum.WorkerLabel

The worker's label.


The documentation for this class was generated from the following file: