Spaces:
Runtime error
Runtime error
chicham
commited on
Modify aggregation strategy for NER (#2)
Browse files
app.py
CHANGED
@@ -253,7 +253,7 @@ def main():
|
|
253 |
load_fn=lambda: pipeline(
|
254 |
"ner",
|
255 |
model=cfg.ner.general,
|
256 |
-
aggregation_strategy=AggregationStrategy.
|
257 |
),
|
258 |
),
|
259 |
recipe=Predictor(
|
|
|
253 |
load_fn=lambda: pipeline(
|
254 |
"ner",
|
255 |
model=cfg.ner.general,
|
256 |
+
aggregation_strategy=AggregationStrategy.MAX,
|
257 |
),
|
258 |
),
|
259 |
recipe=Predictor(
|