error loading the model
#1
by
bhaskerraju
- opened
tokenizer = AutoTokenizer.from_pretrained("protectai/bert-base-NER-onnx")
model = ORTModelForTokenClassification.from_pretrained("protectai/bert-base-NER-onnx")
ner = pipeline(
task="ner",
model=model,
tokenizer=tokenizer,
)
error:
AttributeError: 'ORTModelForTokenClassification' object has no attribute 'can_generate'