/
simple-check-box-with-free-response.yaml
85 lines (66 loc) · 2.71 KB
/
simple-check-box-with-free-response.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"port": 9001,
"server_name": "potato annotator",
"annotation_task_name": "Simple Check Box Example",
# Potato will write the annotation file for all annotations to this
# directory, as well as per-annotator output files and state information
# necessary to restart annotation.
"output_annotation_dir": "annotation_output/simple-check-box-with-free-response/",
# The output format for the all-annotator data. Allowed formats are:
# * jsonl
# * json (same output as jsonl)
# * csv
# * tsv
#
"output_annotation_format": "tsv",
# If annotators are using a codebook, this will be linked at the top to the
# instance for easy access
"annotation_codebook_url": "",
"data_files": [
"data/toy-example.csv"
],
"item_properties": {
"id_key": "id",
"text_key": "text",
"context_key": "context"
},
"user_config": {
"allow_all_users": True,
"users": [ ],
},
# How many seconds do you want the annotators spend on each instance, after
# that, an alert will be sent per alert_time_each_instance seconds.
"alert_time_each_instance": 10000000,
"annotation_schemes": [
{
"annotation_type": "multiselect",
"name": "favorite_color",
"description": "What colors are mentioned in the text?",
"labels": [
"blue", "maize", "green", "white"
],
# If true, the field will have an optional text box the user can
'has_free_response': True,
# If true, numbers [1-len(labels)] will be bound to each
# label. Check box annotations with more than 10 are not supported
# with this simple keybinding and will need to use the full item
# specification to bind all labels to keys.
"sequential_key_binding": True,
},
],
# The html that changes the visualiztation for your task. Change this file
# to influence the layout and description of your task. This is not a full
# HTML page, just the piece that does lays out your task's pieces
"html_layout": "templates/examples/plain_layout.html",
# The core UI files for Potato. You should not need to change these normally.
#
# Exceptions to this might include:
# 1) You want to add custom CSS/fonts to style your task
# 2) Your layout requires additional JS/assets to render
# 3) You want to support additional keybinding magic
#
"base_html_template": "templates/base_template.html",
"header_file": "templates/header.html",
# This is where the actual HTML files will be generated
"site_dir": "potato/templates/",
}