Update README.md
Browse files
README.md
CHANGED
@@ -15,4 +15,14 @@ The original code can be found [here](https://github.com/allenai/PRIMER). You ca
|
|
15 |
| PRIMERA(finetuned) | 49.9 | 21.1 | 25.9|
|
16 |
| PRIMERA-hf(finetuned) | 49.9 | 20.9 | 25.8|
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
| PRIMERA(finetuned) | 49.9 | 21.1 | 25.9|
|
16 |
| PRIMERA-hf(finetuned) | 49.9 | 20.9 | 25.8|
|
17 |
|
18 |
+
You can use it by
|
19 |
+
```
|
20 |
+
from transformers import (
|
21 |
+
AutoTokenizer,
|
22 |
+
LEDConfig,
|
23 |
+
LEDForConditionalGeneration,
|
24 |
+
)
|
25 |
+
tokenizer = AutoTokenizer.from_pretrained('allenai/PRIMERA')
|
26 |
+
config=LEDConfig.from_pretrained('allenai/PRIMERA')
|
27 |
+
model = LEDForConditionalGeneration.from_pretrained('allenai/PRIMERA')
|
28 |
+
```
|