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.
Model Details
Model name:
oddadmix/egyptian-punctuation-restoration
Language:
Egyptian Arabic
Task:
Punctuation Restoration
Framework:
Transformers / Hugging Face
Capabilities:
Periods (
.
)
Commas (
,
)
Question marks (
؟
)
Some handling of exclamation and conversational punctuation
Example
Input (without punctuation):
امبارح وانا راجع من الشغل قابلت واحد صاحبي قديم وهو ماشي قالي انت فاكر زمان لما كنا بنلعب كورة في الشارع والكرة وقعت في بلكونة الجيران وساعتها الراجل نزل زعقلنا هو كان شكله مخيف بس في نفس الوقت ضحك بطريقة غريبة وانا مش فاهم هو كان بيتريق علينا ولا فعلا كان مبسوط الغريبة ان بعد ما خلص كلامه فضل يسألني هو انت لسه بتلعب كورة لحد دلوقتي ولا بطلت وانا استغربت جدا ازاي بعد كل السنين دي لسه فاكر التفاصيل دي
Output (model punctuation restoration):
امبارح وانا راجع من الشغل قابلت واحد صاحبي قديم، وهو ماشي قالي: انت فاكر زمان لما كنا بنلعب كورة في الشارع والكرة وقعت في بلكونة الجيران؟ وساعتها الراجل نزل زعقلنا. هو كان شكله مخيف، بس في نفس الوقت ضحك بطريقة غريبة وانا مش فاهم هو كان بيتريق علينا ولا فعلا كان مبسوط. الغريبة ان بعد ما خلص كلامه، فضل يسألني: هو انت لسه بتلعب كورة لحد دلوقتي ولا بطلت؟ وانا استغربت جدا ازاي بعد كل السنين دي لسه فاكر التفاصيل دي.
Notes:
The model performs well on Egyptian Arabic text and informal conversational style.
Best used for text longer than one sentence to achieve optimal punctuation restoration.
Some cases of exclamations or quotations may not be perfectly restored.
Usage
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)
Runs of oddadmix egyptian-punctuation-restoration on huggingface.co
82
Total runs
1
24-hour runs
0
3-day runs
0
7-day runs
-220
30-day runs
More Information About egyptian-punctuation-restoration huggingface.co Model
egyptian-punctuation-restoration huggingface.co
egyptian-punctuation-restoration huggingface.co is an AI model on huggingface.co that provides egyptian-punctuation-restoration's model effect (), which can be used instantly with this oddadmix egyptian-punctuation-restoration model. huggingface.co supports a free trial of the egyptian-punctuation-restoration model, and also provides paid use of the egyptian-punctuation-restoration. Support call egyptian-punctuation-restoration model through api, including Node.js, Python, http.
egyptian-punctuation-restoration huggingface.co is an online trial and call api platform, which integrates egyptian-punctuation-restoration's modeling effects, including api services, and provides a free online trial of egyptian-punctuation-restoration, you can try egyptian-punctuation-restoration online for free by clicking the link below.
oddadmix egyptian-punctuation-restoration online free url in huggingface.co:
egyptian-punctuation-restoration is an open source model from GitHub that offers a free installation service, and any user can find egyptian-punctuation-restoration on GitHub to install. At the same time, huggingface.co provides the effect of egyptian-punctuation-restoration install, users can directly use egyptian-punctuation-restoration installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
egyptian-punctuation-restoration install url in huggingface.co: