transformers
transformers copied to clipboard
Added Token classification for Udop
What does this PR do?
Fixes #29800
Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [ ] Did you read the contributor guideline, Pull Request section?
- [x] Was this discussed/approved via a Github issue or the forum? Please add a link to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the documentation guidelines, and here are tips on formatting docstrings.
- [x] Did you write any new necessary tests?
Who can review?
@NielsRogge
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.
@NielsRogge ,
Adding to all_model_classes
causes 10 errors. Any hint ?
As of now I have commented UdopForTokenClassification
.
Hi @nileshkokane01, thanks for opening a PR! Are there checkpoints available for this task-specific model? We tend to reserve these additions to situations when this is the case
Guess not. Not official ones at least to my sight.
The original Issue was inspired from the example code of @NielsRogge . (https://github.com/NielsRogge/Transformers-Tutorials/blob/master/UDOP%2FFine_tune_UDOPEncoderModel_on_FUNSD_%28HuggingFace_Trainer%29.ipynb)
He may have a better idea as to why it was a "Good first issue”, or could perhaps point to an available checkpoint.
@nileshkokane01 OK, thanks for clarifying. I've removed the label. In this case, we won't merge in. We can leave this PR as a reference in case anyone in the community would like to see how to add it in their own code :)
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.