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'

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment