Update README.md
Browse files
README.md
CHANGED
@@ -14,9 +14,7 @@ model is [simcse](https://arxiv.org/abs/2104.08821).
|
|
14 |
|
15 |
### Usage
|
16 |
```python
|
17 |
-
>>> from transformers import
|
18 |
-
>>>
|
19 |
-
>>>
|
20 |
-
|
21 |
-
>>> inputs = tokenizer(sentences_str_list,return_tensors="pt", padding='max_length', truncation=True, max_length=32)
|
22 |
-
>>> outputs = model(**inputs)
|
|
|
14 |
|
15 |
### Usage
|
16 |
```python
|
17 |
+
>>> from transformers import pipeline
|
18 |
+
>>> unmasker = pipeline('fill-mask', model='bert-base-uncased')
|
19 |
+
>>> unmasker("Hello I'm a [MASK] model.")
|
20 |
+
```
|
|
|
|