SinaAhmadi commited on
Commit
3ca5629
1 Parent(s): d76ae2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -94,7 +94,7 @@ def normalize(text, language_script):
94
  )
95
  return hypotheses[0]
96
 
97
- title = "Script Normalization for Unconventional Writing"
98
 
99
  description = """
100
  <ul>
@@ -107,7 +107,7 @@ description = """
107
 
108
  <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>
109
 
110
- <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>
111
 
112
  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>
113
  """
@@ -141,4 +141,14 @@ demo = gr.Interface(
141
  examples=examples
142
  )
143
 
 
 
 
 
 
 
 
 
 
 
144
  demo.launch()
 
94
  )
95
  return hypotheses[0]
96
 
97
+ title = "<center><strong><font size='8'>Script Normalization for Unconventional Writing<font></strong></center>"
98
 
99
  description = """
100
  <ul>
 
107
 
108
  <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>
109
 
110
+ <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. For better performance, you can apply hard-coded rules on the input and then pass it to the models, hence a hybrid system.</p>
111
 
112
  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>
113
  """
 
141
  examples=examples
142
  )
143
 
144
+ gr.HTML(
145
+ """
146
+ <div style="text-align: justify; max-width: 1200px; margin: 20px auto;">
147
+ <h3 style="font-weight: 450; font-size: 0.8rem; margin: 0rem">
148
+ <b>Created and deployed by Sina Ahmadi <a href="https://sinaahmadi.github.io/">(https://sinaahmadi.github.io/)</a>.
149
+ </h3>
150
+ </div>
151
+ """
152
+ )
153
+
154
  demo.launch()