Update README.md
Browse files
README.md
CHANGED
|
@@ -21,6 +21,8 @@ Pretrained code: https://github.com/sww9370/RoCBert
|
|
| 21 |
|
| 22 |
## How to use
|
| 23 |
```Python
|
|
|
|
|
|
|
| 24 |
from transformers import AutoTokenizer, AutoModel
|
| 25 |
tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert-base-zh")
|
| 26 |
model = AutoModel.from_pretrained("weiweishi/roc-bert-base-zh")
|
|
|
|
| 21 |
|
| 22 |
## How to use
|
| 23 |
```Python
|
| 24 |
+
# pip install transformers>=4.25.1
|
| 25 |
+
|
| 26 |
from transformers import AutoTokenizer, AutoModel
|
| 27 |
tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert-base-zh")
|
| 28 |
model = AutoModel.from_pretrained("weiweishi/roc-bert-base-zh")
|