LayoutLMv2Processor does not accept the XLMRobertaTokenizerFast #13972
Comments
|
Hi @NielsRogge, I'd like to take a shot at this! |
Great! So one would need to add |
Thanks. Any advice on how I should go about writing the unit tests? |
For the unit tests, I would define |
Environment info
transformers
version: 4.11.3Who can help
@NielsRogge
Information
Model I am using: LayoutXLM
The problem arises when using:
The tasks I am working on is:
To reproduce
Steps to reproduce the behavior:
When we replace the layoutlmv2 tokenizer in cell 8 of https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/RVL-CDIP/Fine_tuning_LayoutLMv2ForSequenceClassification_on_RVL_CDIP.ipynb
with the layoutxlm tokenizer as described in https://huggingface.co/transformers/model_doc/layoutxlm.html
the following error occurs
It looks like the LayoutLMv2Processor does not accept the XLMRobertaTokenizerFast.
Expected behavior
That the LayoutLMv2Processor accepts the XLMRobertaTokenizerFast.
The text was updated successfully, but these errors were encountered: