Spaces:
Runtime error
Runtime error
Commit ·
f4eafde
1
Parent(s): 86d07c4
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ class ExampleDocument(TextDocument):
|
|
| 16 |
|
| 17 |
model_name_or_path = "leonhardhennig/copious_ner"
|
| 18 |
|
| 19 |
-
ner_pipeline = AutoPipeline.from_pretrained(model_name_or_path, device=-1, num_workers=0, taskmodule_kwargs={"include_ill_formed_predictions": False, "
|
| 20 |
|
| 21 |
|
| 22 |
def predict(text):
|
|
|
|
| 16 |
|
| 17 |
model_name_or_path = "leonhardhennig/copious_ner"
|
| 18 |
|
| 19 |
+
ner_pipeline = AutoPipeline.from_pretrained(model_name_or_path, device=-1, num_workers=0, taskmodule_kwargs={"include_ill_formed_predictions": False, "max_window": 512})
|
| 20 |
|
| 21 |
|
| 22 |
def predict(text):
|