Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1545

Extracting data from MTurk platform

$
0
0

I use svelte to build tagging application for MTurk platform.I store the labels in a special store called labelStore of type writable.When the user hist the submit button the store does not appear in the test field:

enter image description here

I tried using the $labelStore to paste the results inside the generated index.html file, but it doesn't treat it as a variable but as text, as shown in the following image (the field here is labels and not test as before, as I've changed it for clarity):

enter image description here

The code that generates the index.html is:

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><script type="module" src="/src/main.js"></script><script src="https://s3.amazonaws.com/mturk-public/externalHIT_v1.js" type="text/javascript"></script><title>Questions</title></head><body><div style="height: 0; width: 0; opacity: 0;"><code class="variable-feed">                ${id_1} :;: ${frameCount_1}</code><code class="variable-feed">                ${id_2} :;: ${frameCount_2}</code><code class="variable-feed">                ${id_3} :;: ${frameCount_3}</code><code class="variable-feed">                ${id_4} :;: ${frameCount_4}</code><code class="variable-feed">                ${id_5} :;: ${frameCount_5}</code></div><div id="app"></div><input style="height: 0;" type="hidden" name="labels" value={$labelStore}></input><!----    important commands for Amazon MTurk -----------------><script language="Javascript">            turkSetAssignmentID();</script><!-------------------------------------------------------------></body></html>

What I want to understand is:

  1. What makes the platform treat variables as outputs?
  2. Should I manually generate a query that will output the variables I need to a CSV file, or there is another way?

Thanks in advance.


Viewing all articles
Browse latest Browse all 1545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>