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ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ