How to access output from Crowd Entity Annotation

0

I'm creating a task on AMT using the Crowd entity annotation Elements that let reviewers label each word in a text block. I want to ensure that the reviewer selects a label for every word/character in the text before submitting the job. What I am trying is to use onsubmit and a validation function in the script section to check whether the length of the labeled entities added together is equal to the total length of the text block but I can't access the output of the crowd entity annotation. This is what I tried but failed:

const answers = document.querySelector('crowd-entity-annotation').value.entities 

I also tried this, which return 'undefined':

const answers = document.querySelector('crowd-entity-annotation').entities 

I appreciate any help.

已提问 2 年前31 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容