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