pere commited on
Commit
0b739e4
·
1 Parent(s): 8ea577e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -45,7 +45,7 @@ st.set_page_config(
45
  )
46
  st.title("Bokmål ⇔ Nynorsk")
47
  st.sidebar.write("""
48
- Here are some sample texts in Norwegian Bokmål and Norwegian Nynorsk that you can try to translate. They are here presented in pairs (Bokmål, Nynorsk, Bokmål...). This way you can also see a suggested translation of the text. As you can see there are a lot of similarities between the languages. Since there also are some grammatical differences, the translation task can not be solved by dictionary replacements. A finetuned model on top of a pretrained t5-base from a balanced corpus, seem to solve the task with a SACREBLEU-score of 88.17.
49
  """)
50
 
51
  masked_texts = [
@@ -54,6 +54,10 @@ masked_texts = [
54
  ]
55
  input_text = st.sidebar.selectbox("Select a Text", options=masked_texts)
56
 
 
 
 
 
57
  text = st.text_area("Enter text:",
58
  input_text,
59
  height=None,
 
45
  )
46
  st.title("Bokmål ⇔ Nynorsk")
47
  st.sidebar.write("""
48
+ Here are some sample texts in Norwegian Bokmål and Norwegian Nynorsk that you can try to translate. They are here presented in pairs (Bokmål, Nynorsk, Bokmål...). This way you can also see a suggested translation of the text.
49
  """)
50
 
51
  masked_texts = [
 
54
  ]
55
  input_text = st.sidebar.selectbox("Select a Text", options=masked_texts)
56
 
57
+ st.sidebar.write("""
58
+ As you can see there are a lot of similarities between the languages. Since there also are some grammatical differences, the translation task can not be solved by dictionary replacements. A finetuned model on top of a pretrained t5-base from a balanced corpus, seem to solve the task with a SACREBLEU-score of 88.17.
59
+ """)
60
+
61
  text = st.text_area("Enter text:",
62
  input_text,
63
  height=None,