Adapted from Victor Quach's great ieturk repo.
Requires a CSV input file with description
,question
,spans
input. Spans are start,end
token tuples that will be prefilled in the interface.
Notes:
- Multiple spans are specified as
start_1,end_1,start_2,end_2,...
. - No spans are specified as "".
- Use a standard CSV reader/writer to make sure everything is escaped properly.
- Create an new project in Amazon Mturk interface.
- Paste the content of
annotate.html
in the second tabDesign layout
. - Insert the scripts
config.js
,annotate.js
and the CSS filestyle.css
into the document as well - Prepare a tokenized version of the entry, separating tokens with spaces.
- Submit batch
Requires localturk. Install using
npm install -g localturk
Modify config.js
with the name of the fields of interest.
Then simply run it using the same tokenized csv file as for Mechanical Turk.
localturk annotation.html input.csv output.csv
Simply open visualize.html
with any modern browser.
Then choose the .csv
that came from either localturk or Mechanical Turk.