Nealcly / templateNER

Source code for template-based NER
209 stars 39 forks source link

Error encountered when running the inference.py file #9

Closed ConnieTong closed 2 years ago

ConnieTong commented 2 years ago

Hi, Thank you for sharing. Could you please provide the version of transformers and other packages? I encountered the problem when running the inference.py (Line: output = model(input_ids=input_ids.to(device), decoder_input_ids=output_ids[:, :output_ids.shape[1] - 2].to(device))[0). The error is as below:

1640094724(1)

fireindark707 commented 2 years ago

Hello, Have you solved the problem? I encountered the same one.

qhq123 commented 12 months ago

I encountered the question too . Could you please tell me the solution about it?THANKS!