【发布时间】:2015-03-30 18:09:28
【问题描述】:
我有 XML 形式的问题,我为每个问题循环创建它们。然后我在每个循环中创建 HIT,给出输入问题文件。但是每次创建 HIT 时,url 似乎都是相同的,并且我之前的 HIT 被覆盖。任何帮助表示赞赏。
在下面的代码中,我指的是
字符串 url = service.getWebsiteURL() + "/mturk/preview?groupId=" + hit.getHITTypeId()
所有 HITS 形成的 url 都是相同的。
如何创建不同的 HIT url?
HITQuestion question = new HITQuestion(questionFile);
HITProperties props = new HITProperties(propertyFile);
//Creating the HIT and loading it into Mechanical Turk
HIT hit = service.createHIT(null, // HITTypeId
props.getTitle(),
props.getDescription(),
props.getKeywords(), // keywords
question.getQuestion(),
props.getRewardAmount(), props.getAssignmentDuration(),
props.getAutoApprovalDelay(), props.getLifetime(),
props.getMaxAssignments(), props.getAnnotation(),
props.getQualificationRequirements(),
null // responseGroup
);
System.out.println("Created HIT: " + hit.getHITId());\
System.out.println("You may see your HIT with HITTypeId '" + hit.getHITTypeId() + "' here: ");
System.out.println(service.getWebsiteURL() + "/mturk/preview?groupId=" + hit.getHITTypeId());
【问题讨论】:
标签: mechanicalturk