Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ else:
|
|
42 |
def load_model(selected_language, model_name=None, entity_set=None):
|
43 |
if selected_language == "German":
|
44 |
# Load the German-specific model
|
45 |
-
nlp_model_de = spacy.load("
|
46 |
nlp_model_de.add_pipe("entityfishing", config={"language": "de"})
|
47 |
|
48 |
return nlp_model_de
|
|
|
42 |
def load_model(selected_language, model_name=None, entity_set=None):
|
43 |
if selected_language == "German":
|
44 |
# Load the German-specific model
|
45 |
+
nlp_model_de = spacy.load("de_core_news_lg")
|
46 |
nlp_model_de.add_pipe("entityfishing", config={"language": "de"})
|
47 |
|
48 |
return nlp_model_de
|