-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add empathy example * Add empathy example * Edit readme
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"annotation_task_name": "Empathy Annotation", | ||
|
||
# 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/empathy/", | ||
|
||
# The output format for the all-annotator data. Allowed formats are: | ||
# * jsonl | ||
# * json (same output as jsonl) | ||
# * csv | ||
# * tsv | ||
# | ||
"output_annotation_format": "csv", | ||
|
||
# If annotators are using a codebook, this will be linked at the top to the | ||
# instance for easy access | ||
"annotation_codebook_url": "", | ||
|
||
"data_files": [ | ||
"example-projects/empathy/data_files/empathy.json" | ||
], | ||
|
||
# Both the target and observer comments are elements in a list referenced by the "text" key. | ||
# See `example-projects/empathy/data_files/empathy.json` for details | ||
"item_properties": { | ||
"id_key": "id", | ||
"text_key": "text", | ||
}, | ||
|
||
# To convert the list into a string, we use `list_as_text` as shown below. | ||
"list_as_text": { | ||
"text_list_prefix_type": 'none', | ||
}, | ||
|
||
|
||
"user_config": { | ||
"allow_all_users": True, | ||
"users": [ ], | ||
}, | ||
|
||
|
||
"annotation_schemes": [ | ||
{ | ||
"annotation_type": "likert", | ||
"name": "rating", | ||
"description": "To what extent does the observer's appraisal of the situation match that of the target speaker?", | ||
"min_label": "Not at all", | ||
"max_label": "Completely", | ||
"size": 5, | ||
"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", | ||
|
||
|
||
# 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, | ||
|
||
|
||
# This is where the actual HTML files will be generated | ||
"site_dir": "potato/templates/", | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ "id": "0", "text": [ "<strong>Target: </strong>My cat died, and I feel very sad about it.", "<strong>Observer: </strong>Oh my gosh, I'm so sorry to hear that. When my cat died it really affected me, too."] } | ||
{ "id": "1", "text": [ "<strong>Target: </strong>I just can't beat the third level of Super Mario Brothers and it's totally ruining my day.", "<strong>Observer: </strong>Ugh yeah, that's so frustrating."] } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.