Update README.md
Browse files
README.md
CHANGED
@@ -51,9 +51,9 @@ The training script is a slightly modified version of [this one](https://colab.r
|
|
51 |
```python
|
52 |
import torch
|
53 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
|
54 |
-
|
55 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
56 |
-
model = AutoModelForQuestionAnswering.from_pretrained(
|
57 |
|
58 |
text = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
|
59 |
question = "What has Huggingface done ?"
|
|
|
51 |
```python
|
52 |
import torch
|
53 |
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
|
54 |
+
ckpt = "mrm8488/longformer-base-4096-finetuned-squadv2"
|
55 |
+
tokenizer = AutoTokenizer.from_pretrained(ckpt)
|
56 |
+
model = AutoModelForQuestionAnswering.from_pretrained(ckpt)
|
57 |
|
58 |
text = "Huggingface has democratized NLP. Huge thanks to Huggingface for this."
|
59 |
question = "What has Huggingface done ?"
|