Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ st.header("Enter text:")
|
|
27 |
text = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")
|
28 |
|
29 |
|
30 |
-
config = {"punct_chars": [".", ";", "·"]}
|
31 |
|
32 |
-
nlp = spacy.load(spacy_model, exclude="
|
33 |
-
nlp.add_pipe("sentencizer", config=config, before="parser")
|
34 |
|
35 |
|
36 |
# Get the new pipeline order
|
|
|
27 |
text = st.text_area("Greek text","φύσει μὲν οὖν αἴσθησιν ἔχοντα γίγνεται τὰ ζῷα, ἐκ δὲ ταύτης τοῖς μὲν αὐτῶν οὐκ ἐγγίγνεται μνήμη, τοῖς δʼ ἐγγίγνεται.")
|
28 |
|
29 |
|
30 |
+
#config = {"punct_chars": [".", ";", "·"]}
|
31 |
|
32 |
+
nlp = spacy.load(spacy_model, exclude="senter")
|
33 |
+
#nlp.add_pipe("sentencizer", config=config, before="parser")
|
34 |
|
35 |
|
36 |
# Get the new pipeline order
|