Update README
Browse files
README.md
CHANGED
@@ -88,6 +88,7 @@ You can use the pipeline for masked language modeling:
|
|
88 |
```python
|
89 |
>>> from transformers import pipeline
|
90 |
>>> from pprint import pprint
|
|
|
91 |
|
92 |
>>> pprint(unmasker("I love the<mask>of Barcelona.",top_k=3))
|
93 |
[{'score': 0.44038116931915283,
|
|
|
88 |
```python
|
89 |
>>> from transformers import pipeline
|
90 |
>>> from pprint import pprint
|
91 |
+
>>> unmasker = pipeline('fill-mask', model='BSC-LT/mRoBERTa')
|
92 |
|
93 |
>>> pprint(unmasker("I love the<mask>of Barcelona.",top_k=3))
|
94 |
[{'score': 0.44038116931915283,
|