NILC-ICMC-USP commited on
Commit
aa4fa01
·
verified ·
1 Parent(s): c255c02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -9,6 +9,7 @@ lex = UDlexPT()
9
  translations = {
10
  '🇧🇷': {
11
  'title': 'PortiLexicon-UD',
 
12
  'input_label': 'Entre uma palavra para buscar:',
13
  'buscando': 'Buscando',
14
  'intro': 'PortiLexicon-UD contém mais de 1,2 milhão de formas de palavras em português brasileiro, juntamente com suas respectivas informações morfológicas e morfossintáticas, seguindo o modelo internacional do <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. O léxico é baseado no <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> e faz parte do projeto <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
@@ -19,6 +20,7 @@ translations = {
19
  },
20
  '🇺🇸': {
21
  'title': 'PortiLexicon-UD',
 
22
  'input_label': 'Enter a word to search:',
23
  'buscando': 'Searching',
24
  'intro': 'PortiLexicon-UD contains over 1.2 million word forms in Brazilian Portuguese with their respective morphological and morphosyntactic information, following the <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a> international model. The lexicon is based on <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> and is part of the <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a> project.',
@@ -29,6 +31,7 @@ translations = {
29
  },
30
  '🇫🇷': {
31
  'title': 'PortiLexicon-UD',
 
32
  'input_label': 'Entrez un mot à rechercher :',
33
  'buscando': 'Recherche en cours',
34
  'intro': 'PortiLexicon-UD contient plus de 1,2 million de formes de mots en portugais brésilien, accompagnées de leurs informations morphologiques et morphosyntaxiques respectives, conformément au modèle international des <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. Le lexique est basé sur <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> et fait partie du projet <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
@@ -39,6 +42,7 @@ translations = {
39
  },
40
  '🇮🇹': {
41
  'title': 'PortiLexicon-UD',
 
42
  'input_label': 'Inserisci una parola da cercare:',
43
  'buscando': 'Ricerca in corso',
44
  'intro': 'PortiLexicon-UD contiene oltre 1,2 milioni di forme di parole in portoghese brasiliano, con le rispettive informazioni morfologiche e morfosintattiche, secondo il modello internazionale delle <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. Il lessico è basato su <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> e fa parte del progetto <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
@@ -49,6 +53,7 @@ translations = {
49
  },
50
  '🇪🇸': {
51
  'title': 'PortiLexicon-UD',
 
52
  'input_label': 'Ingresa una palabra para buscar:',
53
  'buscando': 'Buscando',
54
  'intro': 'PortiLexicon-UD contiene más de 1,2 millones de formas de palabras en portugués brasileño, junto con su respectiva información morfológica y morfosintáctica, siguiendo el modelo internacional de <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. El léxico está basado en <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> y forma parte del proyecto <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
@@ -87,6 +92,7 @@ t = translations[lang_options[selected]]
87
 
88
  # Streamlit app title and introduction
89
  st.title(t["title"])
 
90
  st.write(t["intro"]+"<br><br>", unsafe_allow_html=True)
91
 
92
  # Text input from the user (main interface item)
 
9
  translations = {
10
  '🇧🇷': {
11
  'title': 'PortiLexicon-UD',
12
+ 'subtitle': 'Um léxico para Português Brasileiro de acordo com o modelo Universal Dependencies',
13
  'input_label': 'Entre uma palavra para buscar:',
14
  'buscando': 'Buscando',
15
  'intro': 'PortiLexicon-UD contém mais de 1,2 milhão de formas de palavras em português brasileiro, juntamente com suas respectivas informações morfológicas e morfossintáticas, seguindo o modelo internacional do <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. O léxico é baseado no <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> e faz parte do projeto <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
 
20
  },
21
  '🇺🇸': {
22
  'title': 'PortiLexicon-UD',
23
+ 'subtitle': 'A lexicon for Brazilian Portuguese according to Universal Dependencies model',
24
  'input_label': 'Enter a word to search:',
25
  'buscando': 'Searching',
26
  'intro': 'PortiLexicon-UD contains over 1.2 million word forms in Brazilian Portuguese with their respective morphological and morphosyntactic information, following the <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a> international model. The lexicon is based on <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> and is part of the <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a> project.',
 
31
  },
32
  '🇫🇷': {
33
  'title': 'PortiLexicon-UD',
34
+ 'subtitle': 'Un lexique pour le portugais brésilien selon le modèle Universal Dependencies',
35
  'input_label': 'Entrez un mot à rechercher :',
36
  'buscando': 'Recherche en cours',
37
  'intro': 'PortiLexicon-UD contient plus de 1,2 million de formes de mots en portugais brésilien, accompagnées de leurs informations morphologiques et morphosyntaxiques respectives, conformément au modèle international des <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. Le lexique est basé sur <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> et fait partie du projet <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
 
42
  },
43
  '🇮🇹': {
44
  'title': 'PortiLexicon-UD',
45
+ 'subtitle': 'Un lessico per il portoghese brasiliano secondo il modello Universal Dependencies',
46
  'input_label': 'Inserisci una parola da cercare:',
47
  'buscando': 'Ricerca in corso',
48
  'intro': 'PortiLexicon-UD contiene oltre 1,2 milioni di forme di parole in portoghese brasiliano, con le rispettive informazioni morfologiche e morfosintattiche, secondo il modello internazionale delle <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. Il lessico è basato su <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> e fa parte del progetto <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
 
53
  },
54
  '🇪🇸': {
55
  'title': 'PortiLexicon-UD',
56
+ 'subtitle': 'Un léxico para el portugués brasileño según el modelo Universal Dependencies',
57
  'input_label': 'Ingresa una palabra para buscar:',
58
  'buscando': 'Buscando',
59
  'intro': 'PortiLexicon-UD contiene más de 1,2 millones de formas de palabras en portugués brasileño, junto con su respectiva información morfológica y morfosintáctica, siguiendo el modelo internacional de <a href="https://universaldependencies.org" target="_blank">Universal Dependencies</a>. El léxico está basado en <a href="http://www.nilc.icmc.usp.br/nilc/projects/unitex-pb/web/index.html" target="_blank">Unitex-PB</a> y forma parte del proyecto <a href="https://sites.google.com/icmc.usp.br/poetisa" target="_blank">POeTiSA</a>.',
 
92
 
93
  # Streamlit app title and introduction
94
  st.title(t["title"])
95
+ st.subheader(t["subtitle"])
96
  st.write(t["intro"]+"<br><br>", unsafe_allow_html=True)
97
 
98
  # Text input from the user (main interface item)