how to use
Browse files
README.md
CHANGED
@@ -10,7 +10,11 @@ Used to rewrite questions using previous conversation turns into self-contained
|
|
10 |
|
11 |
## How to use
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
14 |
|
15 |
## Training data
|
16 |
Initialized with pre-trained model PEGASUS-large, fine-tuned using cross-entropy and self-critical sequence training.
|
|
|
10 |
|
11 |
## How to use
|
12 |
|
13 |
+
```python
|
14 |
+
>>> from transformers import PegasusForConditionalGeneration, PegasusTokenizer
|
15 |
+
>>> tokenizer = PegasusTokenizer.from_pretrained('nichal/pegasus_QR')
|
16 |
+
>>> model = PegasusForConditionalGeneration.from_pretrained('nichal/pegasus_QR')
|
17 |
+
```
|
18 |
|
19 |
## Training data
|
20 |
Initialized with pre-trained model PEGASUS-large, fine-tuned using cross-entropy and self-critical sequence training.
|