라디오 및 다중 선택
Potato에서 단일 선택을 위한 라디오 버튼과 다중 레이블 어노테이션을 위한 체크박스를 구성합니다. 키보드 단축키, 툴팁, 색상, 필수 응답을 다룹니다.
라디오 버튼과 다중 선택 체크박스는 분류 작업에서 가장 흔히 쓰이는 어노테이션 유형입니다. 둘 다 필수 필드 세 가지인 annotation_type, name, description과 제공할 labels를 받습니다.
Potato에서 범주형 어노테이션을 위한 라디오 버튼과 체크박스
라디오 버튼
주석자가 정확히 하나의 옵션을 선택해야 할 때 라디오 버튼을 사용합니다.
기본 설정
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "Select the sentiment of this text"
labels:
- Positive
- Negative
- Neutral키보드 단축키
sequential_key_binding은 매핑이 아니라 플래그입니다. 이를 true로 설정하면 레이블이 나열된 순서대로 숫자 1, 2, 3 등이 할당됩니다.
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "Select the sentiment"
labels:
- Positive
- Negative
- Neutral
sequential_key_binding: true키가 목록 순서를 따르므로 레이블 순서를 바꾸면 키도 다시 할당됩니다. 순서를 바꿔도 키가 레이블에 고정되게 하려면 레이블을 객체로 작성하고 각각에 key_value를 지정합니다.
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "Select the sentiment"
labels:
- name: Positive
key_value: "p"
- name: Negative
key_value: "n"
- name: Neutral
key_value: "u"툴팁
툴팁은 스킴이 아니라 레이블에 속하므로 labels 안에 둡니다. 주석자가 작업을 떠나지 않고도 확인할 수 있으므로, 경계 사례는 여기에 두는 것이 알맞습니다.
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "Select the sentiment"
labels:
- name: Positive
tooltip: "Expresses satisfaction, praise, or approval"
- name: Negative
tooltip: "Expresses dissatisfaction, criticism, or complaint"
- name: Neutral
tooltip: "Factual or mixed, with no clear evaluation"예시나 서식이 필요한 안내라면 대신 tooltip_file이 HTML 파일을 가리키게 합니다.
labels:
- name: Positive
tooltip_file: "config/tooltips/positive.html"다중 선택
체크박스로 주석자가 해당하는 모든 레이블을 한 번에 선택할 수 있습니다
주석자가 둘 이상의 옵션을 선택할 수 있을 때 다중 선택을 사용합니다.
기본 설정
annotation_schemes:
- annotation_type: multiselect
name: topics
description: "Select all topics that apply"
labels:
- Politics
- Sports
- Technology
- Entertainment
- Science응답 필수화
체크박스의 최소 또는 최대 개수를 정하는 키는 없습니다. 요구할 수 있는 것은 주석자가 아예 응답하도록 하는 것뿐입니다.
annotation_schemes:
- annotation_type: multiselect
name: topics
description: "Select all topics that apply"
labels:
- Politics
- Sports
- Technology
label_requirement:
required: true선택 개수가 실제로 중요하다면 설명에 그 점을 적고 내보낸 데이터에서 확인하세요. 세 개를 원했는데 여섯 개 선택을 조용히 받아들이는 스킴은 주석자가 추측하도록 두기보다 분석 단계에서 잡아내는 편이 낫습니다.
자유 응답
has_free_response는 "기타" 입력란을 추가합니다. 레이블 집합을 아직 고치고 있는 동안 켜 둘 만한데, 주석자가 거기에 입력하는 내용이 빠져 있는 범주를 알려 주기 때문입니다.
annotation_schemes:
- annotation_type: multiselect
name: topics
description: "Select all topics that apply"
labels:
- Politics
- Sports
- Technology
has_free_response: true표시 옵션
가로 배치
horizontal: true는 옵션을 페이지 아래로 늘어놓는 대신 한 행에 가로로 배치하며, 평점처럼 짧은 레이블 집합에 알맞습니다.
annotation_schemes:
- annotation_type: radio
name: rating
description: "Rate this item from 1 to 5"
labels:
- "1"
- "2"
- "3"
- "4"
- "5"
horizontal: true레이블 색상
색상은 레이블에 지정할 수 있습니다.
annotation_schemes:
- annotation_type: radio
name: sentiment
description: "Select the sentiment"
labels:
- name: Positive
color: "#22C55E"
- name: Negative
color: "#EF4444"
- name: Neutral
color: "#9CA3AF"또는 스킴 이름과 레이블을 키로 삼아 프로젝트 전체에 대해 한 곳에서 지정할 수 있습니다.
ui:
label_colors:
sentiment:
Positive: "#22C55E"
Negative: "#EF4444"
Neutral: "#9CA3AF"둘 다 설정되어 있으면 ui.label_colors가 우선합니다. 전체 적용 순서는 UI 설정을 참고하세요.
옵션 순서 바꾸기
randomize_order는 주석자마다 옵션을 섞어서, 순서 효과가 목록 맨 앞에 있는 옵션에 집중되지 않고 레이블 집합 전체에 분산되게 합니다.
annotation_schemes:
- annotation_type: radio
name: preference
description: "Which option do you prefer?"
labels:
- Option A
- Option B
- Option C
randomize_order: true순서가 의미를 갖는 순서 척도에서는 끄세요.
모범 사례
- 레이블을 짧게 유지하세요 - 모든 항목에서 읽히기 때문입니다
- 키보드 단축키를 켜세요 - 마우스에 손을 뻗지 않는 주석자는 상당히 빠르게 작업합니다
- 경계 사례를 툴팁에 넣으세요 - 주석자가 실제로 틀리는 구분은 눈에 띄는 곳에 있어야 합니다
- 옵션 수를 제한하세요 - 일곱 개를 넘는 라디오 목록은 모든 판단을 느리게 합니다
- 논리적으로 정렬하세요 - 가장 흔한 것부터 또는 강도 순으로 하고, 수집을 시작한 뒤에는 순서를 유지하세요