Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue with requesting by batch (extra info in annotations) #120
Comments
leeper
added
the
enhancement
label
Jul 7, 2017
This comment has been minimized.
This comment has been minimized.
Thanks, yes, only exact matching is currently implemented (here but also everywhere that It may take some time as it will require changing a lot of code. In the meantime, you can use |
This comment has been minimized.
This comment has been minimized.
Thanks for the response, yes regex + perhaps a warning in the documentation could help people out. It's tricky, I guess I just have a special use case that results in the OriginalHitTemplateId to be included in the annotation field. |
torfason commentedJul 7, 2017
•
edited
Hi, I had an issue with requesting results by batch from MTurk using GetAssignments. The symptom is as follows when I request results for batch 123456, which exists:
The issue is that there is extra information in the annotations field, and GetAssignment() by annotation requires an exact match. After examining the HITs with SearchHITs I find that there is information about OriginalHitTemplateId in the annotations field. After updating the query to add that, the GetAssignment() request works:
I wrote a function, GetAssignmentsByBatch(), that also works for my case:
Using this function, I get the results that I expected:
If it had been possible to search by wildcard (or, perhaps the best solution would be if GetAssignment() used a contains by default, rather than an exact match, to select the assignments to return), this would have worked. I file this as an issue because I found nothing in the documentation to suggest there was a better way that I should have used.