SinaAhmadi commited on
Commit
fd9da3b
1 Parent(s): 75b9522

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
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>&quot;<em>mar7aba!</em>&quot;</li>
100
+ <li>&quot;<em>هاو ئار یوو؟</em>&quot;</li>
101
+ <li>&quot;<em>Μπιάνβενου α σετ ντεμό!</em>&quot;</li>
102
+ </ul>
103
+
104
+ <p>What all these sentences are in common? Being greeted in Arabic with &quot;<em>mar7aba</em>&quot; written in the Latin script, then asked how you are (&quot;<em>هاو ئار یوو؟</em>&quot;) in English using the Perso-Arabic script of Kurdish and then, welcomed to this demo in French (&quot;<em>Μπιάνβενου α σετ ντεμό!</em>&quot;) 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 &quot;<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>&quot;, 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" ),