Improve README

This commit is contained in:
Ankur Goyal 2022-09-06 11:01:39 -07:00
parent 1a67f8ef3f
commit 0771b61a10
4 changed files with 6 additions and 2 deletions

View File

@ -16,9 +16,13 @@ invoices as well as both [SQuAD2.0](https://huggingface.co/datasets/squad_v2) an
## Non-consecutive tokens
Unlike other QA models, which can only extract consecutive tokens (because they predict the start and end of a sequence), this model can predict longer-range, non-consecutive sequences with an additional
classifier head. For example, it can extract the two-line address as below:
classifier head. For example, QA models often encounter this failure mode:
![Two-line Address](./demo.png)
![Broken Address](./before.png)
However this model is able to predict non-consecutive tokens and therefore the address correctly:
![Two-line Address](./after.png)
## Getting started with the model

BIN
after.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
before.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
demo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 KiB