Upload MIDAS
Browse files- README.md +98 -0
- data/AR_Idioms.json +0 -0
- data/EN_Idioms.json +0 -0
- data/KO_Idioms.json +0 -0
- data/ZH_Idioms.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Memorization or Reasoning? Exploring the Idiom Understanding of LLMs
|
| 2 |
+
|
| 3 |
+
#### Official Repository for "Memorization or Reasoning? Exploring the Idiom Understanding of LLMs" [[Paper Link (arXiv)]](https://arxiv.org/abs/2505.16216)
|
| 4 |
+
|
| 5 |
+
##### Jisu Kim, Youngwoo Shin, Uiji Hwang, Jihun Choi, Richeng Xuan, and Taeuk Kim. *Accepted to EMNLP 2025 long paper*.
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
<!--  -->
|
| 10 |
+
|
| 11 |
+
## 🌏 Multilingual Idiom Dataset Across Six languages (MIDAS)
|
| 12 |
+
|
| 13 |
+
MIDAS is a comprehensive dataset spanning six typologically and culturally diverse languages: English (EN), German (DE), Chinese (ZH), Korean (KO), Arabic (AR), and Turkish(TR).
|
| 14 |
+
It contains approximately 10,000 idiom instances per language, each paired with a figurative meaning. Where available, example sentences are also included.
|
| 15 |
+
|
| 16 |
+
This repository includes four language subsets of MIDAS.
|
| 17 |
+
German and Turkish had to be excluded due to copyright issues.
|
| 18 |
+
|
| 19 |
+
### 1. Dataset Format
|
| 20 |
+
The dataset includes four JSON files, each corresponding to a specific language.
|
| 21 |
+
|
| 22 |
+
For example, `EN_Idioms.json` is the English subset of our dataset.
|
| 23 |
+
|
| 24 |
+
All four subsets share the same schema of ID, Idiom, Meaning, and Sentence:
|
| 25 |
+
- `ID`: An identifier assigned to each row. Idioms that have multiple figurative meanings are assigned different IDs for each meaning, such as "n-1", "n-2"...
|
| 26 |
+
- `Idiom`: A list of idiom expression variants.
|
| 27 |
+
- `Meaning`: The figurative meaning of the idiom.
|
| 28 |
+
- `Sentence`: A list of example usage sentences including the idiom.
|
| 29 |
+
|
| 30 |
+
The following are some actual examples from our English subset:
|
| 31 |
+
```json
|
| 32 |
+
{
|
| 33 |
+
"ID": "9-1",
|
| 34 |
+
"Idiom": [
|
| 35 |
+
"800-pound gorilla"
|
| 36 |
+
],
|
| 37 |
+
"Meaning": "An entity that dominates.",
|
| 38 |
+
"Sentence": [
|
| 39 |
+
"When it comes to the lucrative search market, Google, not Microsoft, is the 800-pound gorilla.",
|
| 40 |
+
"The thing he unfortunately doesn't recognise is there is an 800-pound gorilla when it comes to major American motor sports. The 800-pound gorilla is Nascar.",
|
| 41 |
+
"It was poetically fitting. For almost a year, Mr. Trump has been the 800-pound gorilla whose unpredictable rampages have obsessed the news media. Now he was completing the circle by commenting on the 400-pound gorilla who briefly stole the spotlight from him for one holiday weekend.",
|
| 42 |
+
"Apache Spark is a cluster-computing framework. It’s the 800-pound gorilla you turn to when it’s impossible to fit your data in memory."
|
| 43 |
+
]
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"ID": "9-2",
|
| 47 |
+
"Idiom": [
|
| 48 |
+
"800-pound gorilla"
|
| 49 |
+
],
|
| 50 |
+
"Meaning": "Something obvious but unaddressed that is dangerous or intimidating.",
|
| 51 |
+
"Sentence": [
|
| 52 |
+
"However, a co-author of the new study said those arguments ignore the “ 800-pound gorilla ”: sky-high prices everywhere."
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"ID": "2542",
|
| 57 |
+
"Idiom": [
|
| 58 |
+
"every dog must have his day",
|
| 59 |
+
"every dog must have its day",
|
| 60 |
+
"every dog has his day",
|
| 61 |
+
"every dog has its day"
|
| 62 |
+
],
|
| 63 |
+
"Meaning": "Everyone experiences success at some point in life.",
|
| 64 |
+
"Sentence": [
|
| 65 |
+
"\"To lose, it hurt. But I learned from that. I learned that every dog has its day. I learned patience.\"",
|
| 66 |
+
"The Hearts manager John McGlynn was thrilled to be drawn against Liverpool in the Europa League play-offs. McGlynn said: \".... I would imagine the bookmakers would favour Liverpool but every dog has its day.\""
|
| 67 |
+
]
|
| 68 |
+
}
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### 2. Hugging Face Datasets
|
| 72 |
+
MIDAS is also available through the Hugging Face 'datasets' library!
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from datasets import load_dataset
|
| 76 |
+
|
| 77 |
+
dataset = load_dataset("HYU-NLP/MIDAS", data_dir="data/")
|
| 78 |
+
print(dataset[0])
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
### 3. Further Details
|
| 82 |
+
More details regarding our dataset is specified in Section 3 and Appendix A of our paper!
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
## 📚 Citation
|
| 87 |
+
|
| 88 |
+
```bibtex
|
| 89 |
+
@misc{kim2025memorizationreasoningexploringidiom,
|
| 90 |
+
title={Memorization or Reasoning? Exploring the Idiom Understanding of LLMs},
|
| 91 |
+
author={Jisu Kim and Youngwoo Shin and Uiji Hwang and Jihun Choi and Richeng Xuan and Taeuk Kim},
|
| 92 |
+
year={2025},
|
| 93 |
+
eprint={2505.16216},
|
| 94 |
+
archivePrefix={arXiv},
|
| 95 |
+
primaryClass={cs.CL},
|
| 96 |
+
url={https://arxiv.org/abs/2505.16216},
|
| 97 |
+
}
|
| 98 |
+
```
|
data/AR_Idioms.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/EN_Idioms.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/KO_Idioms.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/ZH_Idioms.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|