Update README.md
Browse files
README.md
CHANGED
|
@@ -55,14 +55,16 @@ widget:
|
|
| 55 |
|
| 56 |
## Intended uses and limitations
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
|
| 61 |
## How to use
|
| 62 |
|
| 63 |
```python
|
|
|
|
| 64 |
from transformers import pipeline
|
| 65 |
-
|
|
|
|
|
|
|
| 66 |
```
|
| 67 |
|
| 68 |
## Limitations and bias
|
|
|
|
| 55 |
|
| 56 |
## Intended uses and limitations
|
| 57 |
|
| 58 |
+
This model is ready-to-use only for masked language modeling (MLM) to perform the Fill-Mask task. However, it is intended to be fine-tuned on non-generative downstream tasks such as Question Answering, Text Classification, or Named Entity Recognition.
|
|
|
|
| 59 |
|
| 60 |
## How to use
|
| 61 |
|
| 62 |
```python
|
| 63 |
+
from pprint import pprint
|
| 64 |
from transformers import pipeline
|
| 65 |
+
pipe = pipeline("fill-mask", model="aina/DistilBERTa")
|
| 66 |
+
text = "El <mask> és el meu dia preferit de la setmana."
|
| 67 |
+
pprint(pipe(text))
|
| 68 |
```
|
| 69 |
|
| 70 |
## Limitations and bias
|