Spaces:
Running
Running
Update app.py
Browse files
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
|