Spaces:
Runtime error
Runtime error
add
Browse files
source/services/ner/train/train.py
CHANGED
@@ -346,7 +346,7 @@ unwrapped_model.save_pretrained(output_dir, save_function=accelerator.save)
|
|
346 |
from transformers import pipeline
|
347 |
|
348 |
# Replace this with your own checkpoint
|
349 |
-
model_checkpoint = "aimlnerd/bert-finetuned-legalentity-ner"
|
350 |
token_classifier = pipeline(
|
351 |
"token-classification", model=model_checkpoint, aggregation_strategy="simple"
|
352 |
)
|
|
|
346 |
from transformers import pipeline
|
347 |
|
348 |
# Replace this with your own checkpoint
|
349 |
+
model_checkpoint = "aimlnerd/bert-finetuned-legalentity-ner-accelerate"
|
350 |
token_classifier = pipeline(
|
351 |
"token-classification", model=model_checkpoint, aggregation_strategy="simple"
|
352 |
)
|