Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
pipe = pipeline(task="ner",
|
| 6 |
model='Mykes/rubert_ner_SDDCS',
|
| 7 |
tokenizer='Mykes/rubert_ner_SDDCS',
|
| 8 |
-
aggregation_strategy='
|
| 9 |
|
| 10 |
def process_text(text):
|
| 11 |
# Convert input to lowercase as in your example
|
|
|
|
| 5 |
pipe = pipeline(task="ner",
|
| 6 |
model='Mykes/rubert_ner_SDDCS',
|
| 7 |
tokenizer='Mykes/rubert_ner_SDDCS',
|
| 8 |
+
aggregation_strategy='first')
|
| 9 |
|
| 10 |
def process_text(text):
|
| 11 |
# Convert input to lowercase as in your example
|