Skip to content

Commit

Permalink
add anonymization question
Browse files Browse the repository at this point in the history
  • Loading branch information
jmargutt committed Dec 13, 2024
1 parent d8af49c commit b769dea
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions sml/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ def save_to_argilla(
dataset = rg.FeedbackDataset(
fields=[
rg.TextField(
name="text_translated",
title="Translated message",
name="text_original",
title="Original message",
required=True,
use_markdown=True,
),
rg.TextField(
name="text_original",
title="Original message",
name="text_translated",
title="Translated message",
required=True,
use_markdown=True,
),
Expand All @@ -293,7 +293,14 @@ def save_to_argilla(
title="What is the topic of the message?",
labels=topics,
required=True,
visible_labels=100,
visible_labels=20,
),
rg.TextQuestion(
name="anonymization",
title="Re-write the message if it contains personally identifiable information",
description="The original message will be replaced with the new one; example: 'My name is John' -> 'My name is [name]'",
use_markdown=True,
required=False,
),
rg.TextQuestion(
name="translation",
Expand Down

0 comments on commit b769dea

Please sign in to comment.