Huertas97 commited on
Commit
40eb027
1 Parent(s): bea2d03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -126,9 +126,10 @@ st.markdown('<p class="big-font">Welcome to <font color="#4B8BBE">Leet</font><fo
126
  with st.expander("Project Description", expanded=False):
127
  st.write("""
128
  Developed in Applied Intelligence and Data Analysis ([AI+DA](http://aida.etsisi.upm.es/)) group at Polytech University of Madrid (UPM).
129
- This tool uses a Spacy-Transformer Name Entity Recognition model to detect the presence of word camouflaged. Word camouflage is currently used to evade content moderation in Social Media. Therefore, the aim of this tool is to counter new ways of misinformation that emerge in social media platforms.
130
 
131
- Currently, two languages are supported: English and Spanish. Additionally, you can select whether the detected entities are broken down into the three types of camouflaged words: Canonical Leetspeak, Punctuation Camouflaged, Inversion Camouflaged.
 
 
132
  """)
133
 
134
  with st.expander("Try some of these examples", expanded=False):
@@ -143,6 +144,7 @@ with st.expander("Try some of these examples", expanded=False):
143
  SPANISH
144
  - _d+i%o"s mío!
145
  - se asocian con el m13;d0 y el d'o'lor. g£rønlmo solía decir
 
146
  - Con las nuevas tecnologías digitales, los agrlcultør£s pueden manejar mejor el uso de sus tierras, su energía y su agua, y prepararse para el mal clima.
147
  - En el tiempo transcurrido entre mi período de escuela %s%3%c%_%n%d%a%r%1%a y el mo'm3n'to de empezar a enseñar vimos surgir el fenómeno de in't£r'net
148
  - Las pre0c_pac1on3s van desde inquietudes por las ramificaciones desestabilizadoras de una estrategia de salida de la FC, hasta aprehensión por pérdidas de capital en la rápidamente creciente cartera de valores de la Fed (actualmente de $3 billones y en camino a los $4 billones para finales de este año).
@@ -176,7 +178,7 @@ with st.form("my_form"):
176
 
177
  st.subheader("Output")
178
  with st.spinner('Wait for it...'):
179
- doc = selected_model(text_input)
180
  tokens = process_text(doc, selected_multi_ner)
181
 
182
  annotated_text(*tokens)
 
126
  with st.expander("Project Description", expanded=False):
127
  st.write("""
128
  Developed in Applied Intelligence and Data Analysis ([AI+DA](http://aida.etsisi.upm.es/)) group at Polytech University of Madrid (UPM).
 
129
 
130
+ This tool uses a Spacy-Transformer Name Entity Recognition model to detect the presence of words camouflaged. Word camouflage is currently used to evade content moderation in Social Media. Therefore, the aim of this tool is to counter new ways of misinformation that emerge in social media platforms.
131
+
132
+ Currently, two languages are supported: English and Spanish. Additionally, you can select whether the detected entities are broken down into the three types of camouflaged words: Canonical Leetspeak, Punctuation Camouflaged, Inversion Camouflaged. Finally, you can select between "accuracy" or "efficiency" performance.
133
  """)
134
 
135
  with st.expander("Try some of these examples", expanded=False):
 
144
  SPANISH
145
  - _d+i%o"s mío!
146
  - se asocian con el m13;d0 y el d'o'lor. g£rønlmo solía decir
147
+ - La C0v!d es un 3ng@ño de los G0b!3rno$
148
  - Con las nuevas tecnologías digitales, los agrlcultør£s pueden manejar mejor el uso de sus tierras, su energía y su agua, y prepararse para el mal clima.
149
  - En el tiempo transcurrido entre mi período de escuela %s%3%c%_%n%d%a%r%1%a y el mo'm3n'to de empezar a enseñar vimos surgir el fenómeno de in't£r'net
150
  - Las pre0c_pac1on3s van desde inquietudes por las ramificaciones desestabilizadoras de una estrategia de salida de la FC, hasta aprehensión por pérdidas de capital en la rápidamente creciente cartera de valores de la Fed (actualmente de $3 billones y en camino a los $4 billones para finales de este año).
 
178
 
179
  st.subheader("Output")
180
  with st.spinner('Wait for it...'):
181
+ doc = selected_model(text_input.lower())
182
  tokens = process_text(doc, selected_multi_ner)
183
 
184
  annotated_text(*tokens)