Spaces:
Sleeping
Sleeping
Commit
·
fd9da3b
1
Parent(s):
75b9522
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,9 +92,27 @@ examples = [
|
|
| 92 |
["سلاو برا جونی؟"],
|
| 93 |
]
|
| 94 |
|
|
|
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
demo = gr.Interface(
|
|
|
|
|
|
|
| 98 |
fn=normalize,
|
| 99 |
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
| 100 |
outputs=gr.outputs.Textbox(label="Output Text" ),
|
|
|
|
| 92 |
["سلاو برا جونی؟"],
|
| 93 |
]
|
| 94 |
|
| 95 |
+
title = "Script Normalization for Unconventional Writing"
|
| 96 |
|
| 97 |
+
description = """
|
| 98 |
+
<ul>
|
| 99 |
+
<li>"<em>mar7aba!</em>"</li>
|
| 100 |
+
<li>"<em>هاو ئار یوو؟</em>"</li>
|
| 101 |
+
<li>"<em>Μπιάνβενου α σετ ντεμό!</em>"</li>
|
| 102 |
+
</ul>
|
| 103 |
+
|
| 104 |
+
<p>What all these sentences are in common? Being greeted in Arabic with "<em>mar7aba</em>" written in the Latin script, then asked how you are ("<em>هاو ئار یوو؟</em>") in English using the Perso-Arabic script of Kurdish and then, welcomed to this demo in French ("<em>Μπιάνβενου α σετ ντεμό!</em>") written in Greek script. All these sentences are written in an <strong>unconventional</strong> script.</p>
|
| 105 |
+
|
| 106 |
+
<p>Although you may find these sentences risible, unconventional writing is a common practice among millions of speakers in bilingual communities. In our paper entitled "<a href="https://sinaahmadi.github.io/docs/articles/ahmadi2023acl.pdf" target="_blank"><strong>Script Normalization for Unconventional Writing of Under-Resourced Languages in Bilingual Communities</strong></a>", we shed light on this problem and propose an approach to normalize noisy text written in unconventional writing.</p>
|
| 107 |
+
|
| 108 |
+
<p>This demo deploys a few models that are trained for <strong>the normalization of unconventional writing</strong>. Please note that this tool is not a spell-checker and cannot correct errors beyond character normalization.</p>
|
| 109 |
+
|
| 110 |
+
For more information, you can check out the project on GitHub too: <a href="https://github.com/sinaahmadi/ScriptNormalization" target="_blank"><strong>https://github.com/sinaahmadi/ScriptNormalization</strong></a>
|
| 111 |
+
"""
|
| 112 |
|
| 113 |
demo = gr.Interface(
|
| 114 |
+
title=title,
|
| 115 |
+
description=description,
|
| 116 |
fn=normalize,
|
| 117 |
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
| 118 |
outputs=gr.outputs.Textbox(label="Output Text" ),
|