Commit ·
2eb011c
0
Parent(s):
Duplicate from MahtaFetrat/KaamelDict
Browse filesCo-authored-by: Mahta Fetrat <MahtaFetrat@users.noreply.huggingface.co>
- .gitattributes +58 -0
- KaamelDict.csv +0 -0
- README.md +214 -0
.gitattributes
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
# Video files - compressed
|
| 57 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
KaamelDict.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
README.md
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
+
- kaamel-dict
|
| 16 |
+
- kaameldict
|
| 17 |
+
- llm-powered
|
| 18 |
+
pretty_name: Kaamel Dict
|
| 19 |
+
size_categories:
|
| 20 |
+
- 100K<n<1M
|
| 21 |
+
---
|
| 22 |
+
# Kaamel-Dict: A Comprehensive Persian G2P Dictionary
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
Kaamel-Dict is the largest publicly available Persian grapheme-to-phoneme (G2P) dictionary, containing over 116,600 entries.
|
| 27 |
+
It was developed by unifying multiple phonetic representation systems from existing G2P tools
|
| 28 |
+
[[1](https://github.com/mohamad-hasan-sohan-ajini/G2P)]
|
| 29 |
+
[[2](https://github.com/AzamRabiee/Persian\_G2P)]
|
| 30 |
+
[[3](https://github.com/PasaOpasen/PersianG2P)]
|
| 31 |
+
[[4](https://arxiv.org/abs/2204.03067)]
|
| 32 |
+
and datasets
|
| 33 |
+
[[5](https://github.com/open-dict-data/ipa-dict)]
|
| 34 |
+
[[6](https://github.com/tihu-nlp/tihudict)]
|
| 35 |
+
[[7](https://github.com/lotusfa/IPA-Translator)]
|
| 36 |
+
[[8](https://www.wiktionary.org/)]
|
| 37 |
+
[[9](https://www.peykaregan.ir/dataset/)]
|
| 38 |
+
and an additional online glossary
|
| 39 |
+
[[10](http://farhang.apll.ir/)]
|
| 40 |
+
, called Jame` Dictionary, . This dictionary is released under the GNU license, allowing it to be used for
|
| 41 |
+
developing G2P models, Persian text-to-speech (TTS) systems, or linguistic research.
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Column Descriptions
|
| 46 |
+
|
| 47 |
+
The dataset contains the following columns:
|
| 48 |
+
|
| 49 |
+
- **grapheme**: Persian written form of the word.
|
| 50 |
+
- **phoneme**: List of pronunciations of the word. Each item in the list is a tuple of phonemes corresponding to a specific pronunciation.
|
| 51 |
+
- **nodiff**: For some words with multiple pronunciations, this column is marked as `True` if all pronunciations are equivalent and can be used interchangeably. For example, `/AsemAn/` and `/AsmAn/` are both valid pronunciations for the word `آسمان`.
|
| 52 |
+
- **POS**: For some words with multiple pronunciations, each pronunciation is labeled with the part of speech (POS) it takes in a sentence. For example, for the word `مرد`, the pronunciation `/mard/` is always a **NOUN**, while `/mord/` is always a **VERB**. The following POS values are used in this dictionary:
|
| 53 |
+
- **ADP**: Adposition (preposition or postposition), **ADV**: Adverb, **DET**: Determiner, **NUM**: Numeral, **N,EZ**: Noun with Ezafe (e.g., خانهی من), **PRON**: Pronoun, **VERB**: Verb, **SCONJ**: Subordinating conjunction, **NOUN**: Noun, **ADJ**: Adjective
|
| 54 |
+
- **prob**: For some words with multiple pronunciations, this column provides a relative probability (based on native speaker intuition) for each pronunciation. For example, the word `در` is pronounced as `/dorr/` very rarely (in old literature) and as `/dar/` much more commonly (as a preposition). This column indicates the relative likelihood of each pronunciation.
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## Phoneme Representation
|
| 58 |
+
|
| 59 |
+
The phonetic symbols used in this dataset correspond to Persian phonemes. Below is a reference table for the specific symbols and their IPA equivalents:
|
| 60 |
+
|
| 61 |
+
| Symbol | Persian Sound | IPA Equivalent | Example |
|
| 62 |
+
|:------:|:-------------------:|:--------------:|:--------------------:|
|
| 63 |
+
| A | آ, ا (long vowel) | ɑː | ماه: mAh |
|
| 64 |
+
| a | َ (short vowel) | æ | درد: dard |
|
| 65 |
+
| u | او (long vowel) | uː | دوست: dust |
|
| 66 |
+
| i | ای (long vowel) | iː | میز: miz |
|
| 67 |
+
| o | ُ (short vowel) | o | ظهر: zohr |
|
| 68 |
+
| e | ِ (short vowel) | e | ذهن: zehn |
|
| 69 |
+
| S | ش (consonant) | ʃ | شهر: Sahr |
|
| 70 |
+
| C | چ (consonant) | tʃʰ | چتر: Catr |
|
| 71 |
+
| Z | ژ (consonant) | ʒ | ژاله: ZAle |
|
| 72 |
+
| q | غ، ق (consonant) | ɣ, q | غذا: qazA, قند: qand |
|
| 73 |
+
| x | خ (consonant) | x | خاک: xAk |
|
| 74 |
+
| r | ر (consonant) | ɾ | روح: ruh |
|
| 75 |
+
| y | ی (consonant) | j | یار: yAr |
|
| 76 |
+
| j | ج (consonant) | dʒ | نجات: nejAt |
|
| 77 |
+
| v | و (consonant) | v | ورم: varam |
|
| 78 |
+
| ? | ع، ء، ئ (consonant) | ʔ | عمر: ?omr, آینده: ?Ayande |
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## License
|
| 83 |
+
|
| 84 |
+
Kaamel-Dict is distributed under the GNU General Public License, making it freely available for redistribution and modification under the same terms as its source materials. All source dictionaries are licensed for redistribution.
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
## How to Use
|
| 89 |
+
|
| 90 |
+
You can download the dataset from [Here](https://huggingface.co/datasets/MahtaFetrat/KaamelDict/resolve/main/KaamelDict.csv) or clone the repository:
|
| 91 |
+
|
| 92 |
+
```bash
|
| 93 |
+
git clone https://huggingface.co/datasets/MahtaFetrat/KaamelDict
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
## References
|
| 99 |
+
|
| 100 |
+
The following datasets and resources were used to create Kaamel-Dict:
|
| 101 |
+
|
| 102 |
+
```bash
|
| 103 |
+
@misc{ipa-dict,
|
| 104 |
+
title = {IPA-dict: Monolingual wordlists with pronunciation information in IPA},
|
| 105 |
+
year = {2023},
|
| 106 |
+
journal = {GitHub repository},
|
| 107 |
+
howpublished = {\url{https://github.com/open-dict-data/ipa-dict}},
|
| 108 |
+
}
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
```bash
|
| 112 |
+
@misc{tihu-dict,
|
| 113 |
+
title = {Tihu Persia Dictionary},
|
| 114 |
+
year = {2019},
|
| 115 |
+
journal = {GitHub repository},
|
| 116 |
+
howpublished = {\url{https://github.com/tihu-nlp/tihudict}},
|
| 117 |
+
}
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
```bash
|
| 121 |
+
@misc{IPA-Translator,
|
| 122 |
+
title = {IPA-Translator},
|
| 123 |
+
year = {2022},
|
| 124 |
+
journal = {GitHub repository},
|
| 125 |
+
howpublished = {\url{https://github.com/lotusfa/IPA-Translator}},
|
| 126 |
+
}
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
```bash
|
| 130 |
+
@misc{wiktionary,
|
| 131 |
+
title = {Wiktionary free dataset},
|
| 132 |
+
howpublished = {\url{https://www.wiktionary.org/}},
|
| 133 |
+
note = {Accessed: 2024-09-05}
|
| 134 |
+
}
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
```bash
|
| 138 |
+
@misc{zaya,
|
| 139 |
+
title = {Persian Zaya Dictionary},
|
| 140 |
+
howpublished = {\url{https://www.peykaregan.ir/dataset/}},
|
| 141 |
+
note = {Accessed: 2024-09-05}
|
| 142 |
+
}
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
```bash
|
| 146 |
+
@misc{jame,
|
| 147 |
+
title = {Persian Jame Glossary},
|
| 148 |
+
howpublished = {\url{http://farhang.apll.ir/}},
|
| 149 |
+
note = {Accessed: 2024-09-05}
|
| 150 |
+
}
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
```bash
|
| 154 |
+
@misc{mohammadhasan,
|
| 155 |
+
author = {Mohammad Hasan Sohan Ajini},
|
| 156 |
+
title = {Attention Based Grapheme To Phoneme},
|
| 157 |
+
howpublished = {\url{https://github.com/mohamad-hasan-sohan-ajini/G2P}},
|
| 158 |
+
year = {2022},
|
| 159 |
+
note = {Accessed: 2024-09-05}
|
| 160 |
+
}
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
```bash
|
| 164 |
+
@misc{azamrabiee,
|
| 165 |
+
author = {Rabiee, Azam},
|
| 166 |
+
title = {Persian g2p},
|
| 167 |
+
year = {2019},
|
| 168 |
+
publisher = {GitHub},
|
| 169 |
+
journal = {GitHub repository},
|
| 170 |
+
howpublished = {\url{https://github.com/AzamRabiee/Persian\_G2P}},
|
| 171 |
+
note = {Accessed: 2024-09-05}
|
| 172 |
+
}
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
```bash
|
| 176 |
+
@misc{PasaOpasen,
|
| 177 |
+
author = {Demetry Pasсal},
|
| 178 |
+
title = {Simple persian (farsi) grapheme-to-phoneme converter},
|
| 179 |
+
howpublished = {\url{https://github.com/PasaOpasen/PersianG2P}},
|
| 180 |
+
year = {2020},
|
| 181 |
+
note = {Accessed: 2024-09-05}
|
| 182 |
+
}
|
| 183 |
+
```
|
| 184 |
+
|
| 185 |
+
```bash
|
| 186 |
+
@article{zhu2022charsiu-g2p,
|
| 187 |
+
title={ByT5 model for massively multilingual grapheme-to-phoneme conversion},
|
| 188 |
+
author={Zhu, Jian and Zhang, Cong and Jurgens, David},
|
| 189 |
+
url = {https://arxiv.org/abs/2204.03067},
|
| 190 |
+
doi = {10.48550/ARXIV.2204.03067},
|
| 191 |
+
year={2022}
|
| 192 |
+
}
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
---
|
| 196 |
+
|
| 197 |
+
## Contact
|
| 198 |
+
For any questions or inquiries, feel free to open an issue or contact the author at [m.fetrat@sharif.edu].
|
| 199 |
+
|
| 200 |
+
---
|
| 201 |
+
|
| 202 |
+
## Citation
|
| 203 |
+
If you use KaamelDict in your research or projects, please cite the following paper:
|
| 204 |
+
|
| 205 |
+
```bash
|
| 206 |
+
@inproceedings{qharabagh2025llm,
|
| 207 |
+
title={LLM-Powered Grapheme-to-Phoneme Conversion: Benchmark and Case Study},
|
| 208 |
+
author={Qharabagh, Mahta Fetrat and Dehghanian, Zahra and Rabiee, Hamid R},
|
| 209 |
+
booktitle={ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
|
| 210 |
+
pages={1--5},
|
| 211 |
+
year={2025},
|
| 212 |
+
organization={IEEE}
|
| 213 |
+
}
|
| 214 |
+
```
|