亚马逊MTURK将HIT发布到Sandbox

时间:2016-07-12 14:34:22

标签: r mechanicalturk

因此,我尝试将HIT从csv文件发布到AWS沙箱,并且每次只打印1460行中的大约1190行。我已经清除了文件中的所有外部符号。对于发布的每个(大约)300个HIT,此错误会多次出现,然后继续从csv文件发布HIT:

 Error (ServiceUnavailable):

Service AWSMechanicalTurkRequester is currently unavailable. Please try again later Request NA not valid for API request: https://mechanicalturk.sandbox.amazonaws.com/?Service = AWSMechanicalTurkRequester &AWSAccessKeyId = REDACTED &RequesterAnnotation = Comment%20coding%20project%202016-07-12

这是我用来创建HIT的文件:

if (!(file.exists(input_file) && file.exists(template_file)))
  stop('File containing the template or the input values does not exist.')

# Read the input file
input_values <- read.csv(input_file, header = T);

 # Create or retrieve the HIT type.
  git_hit_type <- RegisterHITType(title = 'Categorize comments',
                            description = 'categorize comments!',
                            reward = '.05',
                            duration = seconds(minutes = 5),
                            keywords = 'categorization, coding,     moderation, category',
                            auto.approval.delay = seconds(days = 1),
                            qual.req = score_moder)


# Create the HITs and store their data.
created_hits <- BulkCreateFromTemplate(hit.type = git_hit_type$HITTypeId,
                                   template = template_file,
                                   input = input_values,
                                   expiration = seconds(days = 1),
                                   annotation = paste('Comment coding project', Sys.Date()))

# HITIDs of created HITs.
HITID_value <- rbindlist(created_hits)$HITId

# Clean up.
rm(input_file, template_file, input_values, created_hits)

最终,代码停止并冻结在1190个HIT附近。任何帮助将不胜感激!

0 个答案:

没有答案