nielsr/docvqa_1200_examples
Viewer • Updated • 1.2k • 889 • 12
How to use lakshya-rawat/document-qa-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("document-question-answering", model="lakshya-rawat/document-qa-model") # Load model directly
from transformers import AutoProcessor, AutoModelForDocumentQuestionAnswering
processor = AutoProcessor.from_pretrained("lakshya-rawat/document-qa-model")
model = AutoModelForDocumentQuestionAnswering.from_pretrained("lakshya-rawat/document-qa-model")This is a fine-tuned document question-answering model based on layoutlmv3-base. It is trained to understand documents using OCR data (via PaddleOCR) and accurately answer questions related to structured information in the document layout.
document-qa-modelmicrosoft/layoutlmv3-baseGithub Linknielsr/docvqa_1200_examples
This model can be used for:
The dataset consisted of:
The model performs well on document-style QA tasks, especially with:
GithubBase model
microsoft/layoutlmv3-base