In the Amazon Mechanical Turk command-line tools (I use version: aws-mturk-clt-1.3.0), in one of the samples (site_filter_qual: "Website filtering qualification", file site_filter_qual.question), there is code that looks something like So:
#set( $urls = [ "http://news.bbc.co.uk/", http://..., ...])
#foreach ( $url in $urls )
...
I am wondering:
- a) What language is used here (this is not Perl, not PHP, right?);
- b) Where (on Amazon or elsewhere) I could read about these designs;
- c) How to implement tuples (pairs), for example.
// in Python:
>> data = [("http://news.bbc.com", "NEWS"), ("http://google.com", "SEARCH"), ...]
>> for (url, category) in data:
>> ....
- or something similar?
Thanks in advance!
source
share