-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Token classification using LayoutXLM #76
Comments
Hi, LayoutXLM is identical to LayoutLMv2. There's no LayoutXLM models defined in the library. You can just use:
|
Hi NielsRogge, many thanks for quick answer.
You will get following error: TypeError: init() got an unexpected keyword argument '_configuration_file' |
Which version of Transformers are you on? |
python 3.7 Do you recommend any specific version of transformers? |
Issue is resolved when I downgrade transformers to v4.15.0 |
Thanks, I could reproduce the issue and have reported it. We will fix it. |
Update: fixed per huggingface/transformers#15629. We will do a patch release on Monday. For now, you can install Transformers from master: pip install git+https://github.com/huggingface/transformers.git. Will close this issue. |
Model : LayoutXLM
I am able to use LayoutLMv2ForTokenClassification for my problem. Since the data I am using is in German, I would like to use LayoutXLM model. Unfortunately I do not find LayoutLXLMForTokenClassification on Transformers. How could I do Token classification using LayoutXLM?
To Reproduce
Steps to reproduce the behavior:
from transformers import LayoutXLMForTokenClassification
Expected behavior
ImportError: cannot import name 'LayoutXLMForTokenClassification' from 'transformers' (/opt/conda/lib/python3.7/site-packages/transformers/init.py)
Platform: Linux
Python version: 3.7
The text was updated successfully, but these errors were encountered: