Downloads · 30 days
24
2% of all-time downloads
oddadmix/egyptian-punctuation-restoration
egyptian-punctuation-restoration is a machine learning model from oddadmix. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
[](https://huggingface.co/oddadmix/egyptian-punctuation-restoration)
Downloads · 30 days
24
2% of all-time downloads
All-time downloads
1.3K
Public
Parameters
368M
1.5 GB on disk
Likes
6
Public
Click a slice to open those files.
.safetensors1.5 GB · 99%
From the Hugging Face model README
This model restores punctuation in Egyptian Arabic text. It can automatically insert periods, commas, question marks, and other punctuation marks in raw text that lacks any punctuation. This is particularly useful for processing informal text, chat logs, or transcribed speech in Egyptian Arabic.
oddadmix/egyptian-punctuation-restoration.),)؟)Input (without punctuation):
امبارح وانا راجع من الشغل قابلت واحد صاحبي قديم وهو ماشي قالي انت فاكر زمان لما كنا بنلعب كورة في الشارع والكرة وقعت في بلكونة الجيران وساعتها الراجل نزل زعقلنا هو كان شكله مخيف بس في نفس الوقت ضحك بطريقة غريبة وانا مش فاهم هو كان بيتريق علينا ولا فعلا كان مبسوط الغريبة ان بعد ما خلص كلامه فضل يسألني هو انت لسه بتلعب كورة لحد دلوقتي ولا بطلت وانا استغربت جدا ازاي بعد كل السنين دي لسه فاكر التفاصيل دي
Output (model punctuation restoration):
امبارح وانا راجع من الشغل قابلت واحد صاحبي قديم، وهو ماشي قالي: انت فاكر زمان لما كنا بنلعب كورة في الشارع والكرة وقعت في بلكونة الجيران؟ وساعتها الراجل نزل زعقلنا. هو كان شكله مخيف، بس في نفس الوقت ضحك بطريقة غريبة وانا مش فاهم هو كان بيتريق علينا ولا فعلا كان مبسوط. الغريبة ان بعد ما خلص كلامه، فضل يسألني: هو انت لسه بتلعب كورة لحد دلوقتي ولا بطلت؟ وانا استغربت جدا ازاي بعد كل السنين دي لسه فاكر التفاصيل دي.
Notes:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("oddadmix/egyptian-punctuation-restoration")
model = AutoModelForSeq2SeqLM.from_pretrained("oddadmix/egyptian-punctuation-restoration")
text = "امبارح وانا راجع من الشغل قابلت واحد صاحبي قديم وهو ماشي قالي انت فاكر زمان لما كنا بنلعب كورة في الشارع والكرة وقعت في بلكونة الجيران"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs)
restored_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(restored_text)
If you use this model, please cite it as:
@misc{oddadmix2025egyptianpunctuation,
title={Egyptian Punctuation Restoration Model},
author={Oddadmix},
year={2025},
url={https://huggingface.co/oddadmix/egyptian-punctuation-restoration}
}
License: MIT