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
Update Read.me
Browse files
README.md
CHANGED
|
@@ -3,14 +3,17 @@ language: en
|
|
| 3 |
license: mit
|
| 4 |
pipeline_tag: document-question-answering
|
| 5 |
tags:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
widget:
|
| 10 |
-
- text:
|
| 11 |
-
src:
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# LayoutLM for Visual Question Answering
|
|
@@ -56,4 +59,4 @@ pip install git+https://github.com/huggingface/transformers.git@2ef774211733f0ac
|
|
| 56 |
|
| 57 |
## About us
|
| 58 |
|
| 59 |
-
This model was created by the team at [Impira](https://www.impira.com/).
|
|
|
|
| 3 |
license: mit
|
| 4 |
pipeline_tag: document-question-answering
|
| 5 |
tags:
|
| 6 |
+
- layoutlm
|
| 7 |
+
- document-question-answering
|
| 8 |
+
- pdf
|
| 9 |
+
- legal
|
| 10 |
widget:
|
| 11 |
+
- text: What is the invoice number?
|
| 12 |
+
src: >-
|
| 13 |
+
https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png
|
| 14 |
+
- text: What is the purchase amount?
|
| 15 |
+
src: >-
|
| 16 |
+
https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/contract.jpeg
|
| 17 |
---
|
| 18 |
|
| 19 |
# LayoutLM for Visual Question Answering
|
|
|
|
| 59 |
|
| 60 |
## About us
|
| 61 |
|
| 62 |
+
This model was created by the team at [Impira](https://www.impira.com/).
|