Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,11 @@ st.header("Enter text:")
|
|
26 |
text = st.text_area("","Ὁ μὲν δὴ Συλοσῶν ἠπίστατο τοῦτό οἱ ἀπολωλέναι δι' εὐηθείην.")
|
27 |
|
28 |
|
29 |
-
nlp = spacy.load(spacy_model,
|
|
|
|
|
30 |
|
31 |
# Get the new pipeline order
|
32 |
-
print(nlp.pipe_names) # Output: ['ner', 'tagger', 'parser'])
|
33 |
|
34 |
doc = nlp(text)
|
35 |
|
|
|
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
|
|
|
34 |
|
35 |
doc = nlp(text)
|
36 |
|