Exibição Pura
Adicione blocos de exibição somente leitura às interfaces de anotação do Potato — texto formatado, instruções, divisores e orientações contextuais que os anotadores não podem editar nem interagir.
O tipo pure_display mostra conteúdo aos anotadores sem coletar nenhuma anotação. Use-o para cabeçalhos de seção, instruções inline ou orientações formatadas entre os campos de anotação.
Um bloco pure_display adiciona texto entre as perguntas
Configuração Básica
annotation_schemes:
- name: "instructions_header"
description: "Please read the text carefully and answer the following questions."
annotation_type: "pure_display"Opções de Configuração
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
name | string | Sim | Identificador único (não usado na saída) |
description | string | Sim | Texto do título do bloco |
annotation_type | string | Sim | Deve ser "pure_display" |
labels | array of strings | Não | Linhas de texto do corpo exibidas abaixo do título, uma linha por entrada |
allow_html | boolean | Não | Renderiza HTML básico, como <b>, <em> e <ul>, em description e labels (padrão: false) |
O Potato não renderiza Markdown em um bloco de exibição. Sem allow_html, um texto como **bold** aparece exatamente como foi digitado. Com allow_html: true, o Potato sanitiza o HTML e remove scripts e outros elementos inseguros.
Exemplos
Cabeçalho de Seção
annotation_schemes:
# Instructions section
- name: "instructions"
description: "Instructions"
annotation_type: "pure_display"
labels:
- "Read the text below and answer the questions that follow."
# First annotation task
- name: "sentiment"
description: "What is the overall sentiment?"
annotation_type: "radio"
labels:
- "Positive"
- "Negative"
- "Neutral"Divisor Entre Seções
annotation_schemes:
- name: "classification"
description: "Classify the document type"
annotation_type: "radio"
labels:
- "News"
- "Opinion"
- "Analysis"
# Visual divider
- name: "divider"
description: "Quality Assessment"
annotation_type: "pure_display"
labels:
- "Now evaluate the quality of the content."
- name: "quality"
description: "Rate the writing quality"
annotation_type: "likert"
size: 5
min_label: "Poor"
max_label: "Excellent"Instruções Condicionais
annotation_schemes:
- name: "contains_pii"
description: "Does this text contain personal information?"
annotation_type: "radio"
labels:
- "Yes"
- "No"
# Shown only after the annotator answers "Yes"
- name: "pii_instructions"
description: "<b>You selected Yes above.</b> Please identify all personal information in the next section."
annotation_type: "pure_display"
allow_html: true
display_logic:
show_when:
- schema: "contains_pii"
operator: "equals"
value: "Yes"
- name: "pii_types"
description: "What types of PII are present?"
annotation_type: "multiselect"
labels:
- "Name"
- "Email"
- "Phone"
- "Address"
- "SSN"
display_logic:
show_when:
- schema: "contains_pii"
operator: "equals"
value: "Yes"Lembrete de Diretrizes
annotation_schemes:
- name: "reminder"
description: "Remember:"
annotation_type: "pure_display"
labels:
- "Focus on the main claim, not supporting details."
- "Consider the author's intent."
- "When in doubt, select Unclear."
- name: "stance"
description: "What is the author's stance on the topic?"
annotation_type: "radio"
labels:
- "Support"
- "Oppose"
- "Neutral"
- "Unclear"Formato de Saída
As anotações de exibição pura não são incluídas na saída, pois não coletam nenhum dado.
Casos de Uso
- Cabeçalhos de seção - Organizar tarefas de anotação complexas
- Instruções - Fornecer orientação específica ao contexto
- Avisos - Destacar considerações importantes
- Divisores - Separar visualmente diferentes seções de anotação
- Exemplos - Mostrar anotações de exemplo inline
- Diretrizes - Lembrar os anotadores dos critérios principais
Boas Práticas
- Seja conciso - Blocos longos de texto podem reduzir a velocidade da anotação
- Use formatação - Texto em negrito e listas melhoram a legibilidade, e exigem
allow_html: truecom tags HTML - Posicionamento estratégico - Coloque as instruções imediatamente antes das perguntas relevantes
- Não exagere - Blocos de exibição em excesso desorganizam a interface