Demosthene-OR commited on
Commit
b498339
·
1 Parent(s): fe8f7fb
tabs/sentence_similarity_tab.py CHANGED
@@ -371,6 +371,8 @@ def run():
371
  st.write("")
372
  proximite()
373
  '''
 
 
374
  sentences = ["This is an example sentence", "Each sentence is converted"]
375
  sentences[0] = st.text_area(label=tr("Saisir le texte le texte de reference"), value="This is an example sentence")
376
  sentences[1] = st.text_area(label=tr("Saisir le texte à comparer"), value="Each sentence is converted")
 
371
  st.write("")
372
  proximite()
373
  '''
374
+ st.write("")
375
+ st.title(tr(title))
376
  sentences = ["This is an example sentence", "Each sentence is converted"]
377
  sentences[0] = st.text_area(label=tr("Saisir le texte le texte de reference"), value="This is an example sentence")
378
  sentences[1] = st.text_area(label=tr("Saisir le texte à comparer"), value="Each sentence is converted")
tabs/text2speech_tab.py CHANGED
@@ -321,7 +321,7 @@ def display_preprocess_results(lang, data, data_split, data_lem, data_wosw, txt_
321
  st.write("\n**"+tr("Mots uniques sans stop words")+":**")
322
  st.markdown(mots_wo_sw[:500])
323
 
324
-
325
  def run():
326
  global max_lines, first_line, last_line, lemmatize_to_do, stopwords_to_do
327
  global full_txt_en, full_txt_split_en, full_txt_lem_en, full_txt_wo_stopword_en, full_df_count_word_en
@@ -329,7 +329,7 @@ def run():
329
 
330
  st.write("")
331
  st.title(tr(title))
332
-
333
  st.write("## **"+tr("Explications")+" :**\n")
334
  st.markdown(tr(
335
  """
@@ -411,7 +411,7 @@ def run():
411
  if st.session_state.reCalcule:
412
  txt_fr, corpus_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr,sent_len_fr, sent_wo_sw_len_fr, sent_lem_len_fr = preprocess_txt (txt_fr,'fr')
413
  display_preprocess_results('fr', txt_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr)
414
- '''
415
 
416
 
417
 
 
321
  st.write("\n**"+tr("Mots uniques sans stop words")+":**")
322
  st.markdown(mots_wo_sw[:500])
323
 
324
+ '''
325
  def run():
326
  global max_lines, first_line, last_line, lemmatize_to_do, stopwords_to_do
327
  global full_txt_en, full_txt_split_en, full_txt_lem_en, full_txt_wo_stopword_en, full_df_count_word_en
 
329
 
330
  st.write("")
331
  st.title(tr(title))
332
+ '''
333
  st.write("## **"+tr("Explications")+" :**\n")
334
  st.markdown(tr(
335
  """
 
411
  if st.session_state.reCalcule:
412
  txt_fr, corpus_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr,sent_len_fr, sent_wo_sw_len_fr, sent_lem_len_fr = preprocess_txt (txt_fr,'fr')
413
  display_preprocess_results('fr', txt_fr, txt_split_fr, txt_lem_fr, txt_wo_stopword_fr, df_count_word_fr)
414
+ '''
415
 
416
 
417