sendComparisons: Send comparisons to Mechanical Turk

View source: R/sendComparisons.R

sendComparisonsR Documentation

Send comparisons to Mechanical Turk

Description

sendComparisons uploads comparisons onto MTurk for labeling.

Usage

sendComparisons(
  hit_type = NULL,
  hit_layout = NULL,
  comparisons_to_send = NULL,
  expire_in_seconds = as.character(60 * 60 * 8),
  n_assignments = "3",
  hit_param_names = c("doc1", "doc2")
)

Arguments

hit_type

The HITType ID from the MTurk requester dashboard.

hit_layout

The Layout ID from the MTurk requester dashboard.

comparisons_to_send

A data.frame of two columns, where each row corresponds with a single comparison and each entry is the text of the documents to be compared.

expire_in_seconds

A string indicating the number of seconds until the batch of HITs expires. The default is 8 hours (28,800 seconds). The value must be between 30 and 31,536,000.

n_assignments

A string indicating the number of times each unique comparison is to be uploaded. The default is '1'.

hit_param_names

A vector of strings with parameter names as they appear in the HITformat.html file. These should not be modified unless using a custom version of HITformat.html where alternate parameter names have been specified.

Details

The function sends comparisons to MTurk for labeling.

Value

A vector of HIT ids corresponding to the most recent batch sent to MTurk.

Author(s)

Ryden Butler


RydenButler/labelR documentation built on May 9, 2023, 5:52 a.m.