Update README.md
Browse files
README.md
CHANGED
|
@@ -27,16 +27,8 @@ ColD Fusion-based model outperforms RoBERTa by 2.45 points in average without an
|
|
| 27 |
|
| 28 |
|
| 29 |
### How to use
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
```python
|
| 34 |
-
>>> from transformers import pipeline
|
| 35 |
-
>>> unmasker = pipeline('fill-mask', model='ibm/ColD-Fusion')
|
| 36 |
-
>>> unmasker("Hello I'm a <mask> model.")
|
| 37 |
-
```
|
| 38 |
-
|
| 39 |
-
Here is how to use this model to get the features of a given text in PyTorch:
|
| 40 |
|
| 41 |
```python
|
| 42 |
from transformers import RobertaTokenizer, RobertaModel
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
### How to use
|
| 30 |
+
Best way to use is to finetune on your own task, but you can also extract features directly.
|
| 31 |
+
To get the features of a given text in PyTorch:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
```python
|
| 34 |
from transformers import RobertaTokenizer, RobertaModel
|