From f39a2f9498c7afb9df8a553fa948ddb6f90731cd Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Thu, 9 Jul 2020 16:46:11 +0200 Subject: [PATCH] Add annotation tasks to DB schema --- config/models | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/config/models b/config/models index bf0d689..80d7841 100644 --- a/config/models +++ b/config/models @@ -198,4 +198,39 @@ Target deadline UTCTime value Double name Text Maybe +-- for doing manual annotation or human baselines +-- A specific annotation task, related to a specific challenge +AnnotationTask + challenge ChallengeId + added UTCTime default=now() + name Text + UniqueAnnotationTaskName name +-- A possible label that an annotator can use. +-- The labels will be shown as buttons to click for an annotator +AnnotationLabel + annotationTask AnnotationTaskId + -- name to be shown (e.g. as the button label) + name Text + -- value represented by the label (when evaluating the results) + value Text + -- for sorting labels when showing to a user + order Int + UniqueAnnotationLabelName annotationTask name +-- A single item to be annotated. +-- It corresponds to a single line in the in.tsv file. Note that +-- only a subset of lines can be considered here (and covering +-- various test sets) +AnnotationItem + annotationTask AnnotationTaskId + -- the line content (possibly including TABs) + content Text + -- to specify the order in which the items are shown to a user + order Int +-- A decision (annotation) made by a user for a specific item +AnnotationDecision + annotationItem AnnotationItemId + user UserId + -- value selected by the user (cf. value in AnnotationLabel) + value Text + stamp UTCTime default=now() -- By default this file is used in Model.hs (which is imported by Foundation.hs)