Jacobo commited on
Commit
0897c3b
1 Parent(s): 994743f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -26,8 +26,10 @@ st.header("Enter text:")
26
  text = st.text_area("","Ὁ μὲν δὴ Συλοσῶν ἠπίστατο τοῦτό οἱ ἀπολωλέναι διʼ εὐηθείην.")
27
 
28
 
 
 
29
  nlp = spacy.load(spacy_model, exclude="sentencizer")
30
- nlp.add_pipe("sentencizer", before="parser")
31
 
32
 
33
  # Get the new pipeline order
26
  text = st.text_area("","Ὁ μὲν δὴ Συλοσῶν ἠπίστατο τοῦτό οἱ ἀπολωλέναι διʼ εὐηθείην.")
27
 
28
 
29
+ config = {"punct_chars": [".", ";", "·"]}
30
+
31
  nlp = spacy.load(spacy_model, exclude="sentencizer")
32
+ nlp.add_pipe("sentencizer", config=config, before="parser")
33
 
34
 
35
  # Get the new pipeline order