Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NER Pipeline not working #10393

Closed
GuillemGSubies opened this issue Feb 25, 2021 · 3 comments
Closed

NER Pipeline not working #10393

GuillemGSubies opened this issue Feb 25, 2021 · 3 comments

Comments

@GuillemGSubies
Copy link
Contributor

I just followed the token classification notebook and created a pipeline from the model I trained there. Here you can see the full notebook: https://colab.research.google.com/drive/1OzfFTgZwjxdIikbQ8lVJbA2SRF3IeJ5F?usp=sharing

The only thing that I changed (apart from creating the pipeline and calling it) s the number of training steps so the training is faster.

In the last cell you can see the error:

ValueError: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length.

Who can help

@LysandreJik
Copy link
Member

Hello! The fix for this was merged a few days ago: #10184

I recommend you install from source while no new version is available for Transformers (a new version should be out in ~2 weeks). Sorry for the inconvenience.

@GuillemGSubies
Copy link
Contributor Author

Ok thank you for the fast response. I always open the issues before checking master branch 😓

@LysandreJik
Copy link
Member

No worries, better to have too much issues reported than not enough!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants