Ankur Goyal commited on
Commit
0a587ab
1 Parent(s): 1244b67

Update README

Browse files
Files changed (1) hide show
  1. README.md +3 -6
README.md CHANGED
@@ -6,11 +6,7 @@ license: mit
6
 
7
  # LayoutLM for Visual Question Answering
8
 
9
- This is a fine-tuned version of the multi-modal [LayoutLM](https://aka.ms/layoutlm) model for the task of question answering on documents. It has been fine-tuned on
10
-
11
- ## Model details
12
-
13
- The LayoutLM model was developed at Microsoft ([paper](https://arxiv.org/abs/1912.13318)) as a general purpose tool for understanding documents. This model is a fine-tuned checkpoint of [LayoutLM-Base-Cased](https://huggingface.co/microsoft/layoutlm-base-uncased), using both the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) and [DocVQA](https://www.docvqa.org/) datasets.
14
 
15
  ## Getting started with the model
16
 
@@ -50,7 +46,8 @@ nlp(
50
  # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20}
51
  ```
52
 
53
- **NOTE**: This model relies on a [model definition](https://github.com/huggingface/transformers/pull/18407) and [pipeline](https://github.com/huggingface/transformers/pull/18414) that are currently in review to be included in the transformers project. In the meantime, you'll have to use the `trust_remote_code=True` flag to run this model.
 
54
 
55
  ## About us
56
 
 
6
 
7
  # LayoutLM for Visual Question Answering
8
 
9
+ This is a fine-tuned version of the multi-modal [LayoutLM](https://aka.ms/layoutlm) model for the task of question answering on documents. It has been fine-tuned using both the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) and [DocVQA](https://www.docvqa.org/) datasets.
 
 
 
 
10
 
11
  ## Getting started with the model
12
 
 
46
  # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20}
47
  ```
48
 
49
+ **NOTE**: This model was recently landed in transformers via [PR #18407](https://github.com/huggingface/transformers/pull/18407), so you'll need to use a recent version of transformers (e.g. `pip install git+https://github.com/huggingface/transformers.git@5c4c869014f5839d04c1fd28133045df0c91fd84`).
50
+ The [pipeline](https://github.com/huggingface/transformers/pull/18414) is currently in review to be included in the transformers project. In the meantime, you'll have to use the `trust_remote_code=True` flag to run the pipeline.
51
 
52
  ## About us
53