Idiomaticity Detection
Binary classification of whether a target multi-word expression is used idiomatically or literally in context, covering English and Portuguese. Based on SemEval-2022 Task 2 (Tayyar Madabushi et al.).
ملف الإعدادconfig.yaml
# Idiomaticity Detection
# Based on Tayyar Madabushi et al., SemEval 2022
# Paper: https://aclanthology.org/2022.semeval-1.13/
# Dataset: https://github.com/H-TayyarMadabushi/SemEval_2022_Task2-idiomaticity
#
# This task asks annotators to determine whether a highlighted multi-word
# expression is used idiomatically (figuratively) or literally in the
# given sentence context.
#
# Classification Labels:
# - Idiomatic: The expression is used in its figurative, non-compositional sense
# - Literal: The expression is used in its literal, compositional sense
annotation_task_name: "Idiomaticity Detection"
task_dir: "."
data_files:
- sample-data.json
item_properties:
id_key: "id"
text_key: "text"
output_annotation_dir: "annotation_output/"
output_annotation_format: "json"
port: 8000
server_name: localhost
annotation_schemes:
- annotation_type: radio
name: idiomaticity
description: "Is the target expression used idiomatically or literally?"
labels:
- "Idiomatic"
- "Literal"
keyboard_shortcuts:
"Idiomatic": "1"
"Literal": "2"
tooltips:
"Idiomatic": "The expression is used in its figurative or non-compositional sense (meaning cannot be derived from individual words)"
"Literal": "The expression is used in its literal or compositional sense (meaning is the sum of its parts)"
annotation_instructions: |
You will see a sentence containing a target multi-word expression along with the language.
Determine whether the expression is used idiomatically (figuratively) or literally.
- Idiomatic: The expression has a figurative meaning different from its literal parts.
- Literal: The expression means exactly what the individual words suggest.
html_layout: |
<div style="padding: 15px; max-width: 800px; margin: auto;">
<div style="display: flex; gap: 12px; margin-bottom: 12px;">
<div style="background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; padding: 12px; flex: 1;">
<strong style="color: #065f46;">Language:</strong>
<span style="font-size: 15px; margin-left: 8px;">{{language}}</span>
</div>
<div style="background: #fef3c7; border: 1px solid #fde68a; border-radius: 8px; padding: 12px; flex: 1;">
<strong style="color: #92400e;">Target Expression:</strong>
<span style="font-size: 15px; font-weight: bold; margin-left: 8px;">{{target_expression}}</span>
</div>
</div>
<div style="background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 16px; margin-bottom: 16px;">
<strong style="color: #0369a1;">Sentence:</strong>
<p style="font-size: 16px; line-height: 1.7; margin: 8px 0 0 0;">{{text}}</p>
</div>
</div>
allow_all_users: true
instances_per_annotator: 50
annotation_per_instance: 3
allow_skip: true
skip_reason_required: false
بيانات نموذجيةsample-data.json
[
{
"id": "idiom_001",
"text": "After losing his job and his apartment in the same week, Tom felt like he was really at the end of his rope.",
"target_expression": "at the end of his rope",
"language": "English"
},
{
"id": "idiom_002",
"text": "The mountain climber was literally at the end of his rope, dangling fifty feet above the rocky ledge below.",
"target_expression": "at the end of his rope",
"language": "English"
}
]
// ... and 8 more itemsاحصل على هذا التصميم
Clone or download from the repository
بدء سريع:
git clone https://github.com/davidjurgens/potato-showcase.git cd potato-showcase/semeval/2022/task02-idiomaticity potato start config.yaml
التفاصيل
أنواع التوسيم
المجال
حالات الاستخدام
الوسوم
وجدت مشكلة أو تريد تحسين هذا التصميم؟
افتح مشكلةتصاميم ذات صلة
Capturing Discriminative Attributes
Binary classification of whether a semantic attribute discriminates between two words, testing understanding of fine-grained word meaning differences. Based on SemEval-2018 Task 10.
CODWOE - Comparing Dictionaries and Word Embeddings
Definition generation and concreteness classification for words in context, comparing dictionary definitions with distributional word representations. Based on SemEval-2022 Task 1 (Mickus et al.).
Hypernym Discovery
Discovery of hypernyms (broader terms) for a given target term in context, with classification of the hypernym relationship type. Based on SemEval-2018 Task 9.