Instructions to use impira/layoutlm-document-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impira/layoutlm-document-qa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="impira/layoutlm-document-qa")# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-qa") model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-document-qa") - Notebooks
- Google Colab
- Kaggle
Question regarding training and validation of model
#1
by ankur310794 - opened
Hi Team,
Thanks for sharing the model.
I have few questions, How did you train layoutLM model on SQAUD 2.0? What was the validation accuracy metric on both data?
Regards,
Ankur
HI @ankur310794 , we converted SQuAD into documents and were able to train using those.
We may publish validation accuracy metrics for future revisions but at this time are not publishing results. Let me know if you have any further questions!
thanks
ankur310794 changed discussion status to closed