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