Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,18 +22,6 @@ text = st.text_area("Greek text","ἐπὶ τοῦτον δὴ τὸν Ἄμασ
|
|
22 |
|
23 |
nlp = spacy.load(spacy_model)
|
24 |
|
25 |
-
# Add the NER pipeline from grc_ner_trf if the selected model is grc_proiel_trf or grc_perseus_trf
|
26 |
-
#if spacy_model in ["grc_proiel_trf", "grc_perseus_trf"]:
|
27 |
-
# ner = spacy.load("grc_ner_trf")
|
28 |
-
# for pipe_name, pipe in ner.pipeline:
|
29 |
-
# nlp.add_pipe(pipe, name=pipe_name, source=ner)
|
30 |
-
|
31 |
-
# Add the NER pipeline from grc_ner_trf if the selected model is grc_proiel_trf or grc_perseus_trf
|
32 |
-
if spacy_model in ["grc_proiel_trf", "grc_perseus_trf"]:
|
33 |
-
ner = spacy.load("grc_ner_trf")
|
34 |
-
for pipe_name, pipe in ner.pipeline:
|
35 |
-
nlp.add_pipe(pipe_name, source=ner)
|
36 |
-
|
37 |
doc = nlp(text)
|
38 |
|
39 |
def get_html(html: str):
|
|
|
22 |
|
23 |
nlp = spacy.load(spacy_model)
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
doc = nlp(text)
|
26 |
|
27 |
def get_html(html: str):
|