dependency-tree / config.yaml
davidjurgens's picture
Deploy Potato demo: Potato — Dependency Tree
4566b27 verified
Raw
History Blame Contribute Delete
2.36 kB
annotation_task_name: Dependency Tree Annotation
data_files:
- data/sentences.json
item_properties:
id_key: id
text_key: text
layout:
grid:
columns: 2
gap: 1rem
annotation_schemes:
- annotation_type: span
name: tokens
description: Highlight individual tokens and assign POS tags
layout:
columns: 1
labels:
- name: NOUN
tooltip: Nouns (cat, dog, idea)
key_value: n
- name: VERB
tooltip: Verbs (run, eat, think)
key_value: v
- name: ADJ
tooltip: Adjectives (big, red, happy)
key_value: a
- name: ADV
tooltip: Adverbs (quickly, very, well)
key_value: r
- name: DET
tooltip: Determiners (the, a, this)
key_value: d
- name: ADP
tooltip: Adpositions/Prepositions (in, on, at)
key_value: p
- name: PRON
tooltip: Pronouns (he, she, it)
key_value: o
- name: PUNCT
tooltip: Punctuation (., !, ?)
key_value: .
sequential_key_binding: false
- annotation_type: span_link
name: dependencies
description: Create dependency relations between tokens (click head first, then
dependent)
layout:
columns: 1
span_schema: tokens
link_types:
- name: nsubj
directed: true
color: '#dc2626'
allowed_target_labels:
- VERB
- name: obj
directed: true
color: '#22c55e'
allowed_target_labels:
- VERB
- name: iobj
directed: true
color: '#10b981'
allowed_target_labels:
- VERB
- name: amod
directed: true
color: '#3b82f6'
allowed_target_labels:
- NOUN
- PRON
- name: advmod
directed: true
color: '#8b5cf6'
allowed_target_labels:
- VERB
- ADJ
- ADV
- name: nmod
directed: true
color: '#f59e0b'
allowed_target_labels:
- NOUN
- VERB
- name: det
directed: true
color: '#6b7280'
allowed_source_labels:
- DET
allowed_target_labels:
- NOUN
- name: case
directed: true
color: '#a855f7'
allowed_source_labels:
- ADP
- name: punct
directed: true
color: '#9ca3af'
allowed_source_labels:
- PUNCT
- name: root
directed: true
color: '#ef4444'
visual_display:
enabled: true
arc_position: above
show_labels: true
multi_line_mode: single_line
user_config:
allow_all_users: true
task_dir: .
output_annotation_dir: annotation_output
port: 8000
require_no_password: true