Update README.md
Browse files
README.md
CHANGED
@@ -87,8 +87,8 @@ and in TensorFlow:
|
|
87 |
|
88 |
```python
|
89 |
from transformers import BertTokenizer, TFBertModel
|
90 |
-
tokenizer = BertTokenizer.from_pretrained('uer/chinese_roberta_L-
|
91 |
-
model = TFBertModel.from_pretrained("uer/chinese_roberta_L-
|
92 |
text = "用你喜欢的任何文本替换我。"
|
93 |
encoded_input = tokenizer(text, return_tensors='tf')
|
94 |
output = model(encoded_input)
|
|
|
87 |
|
88 |
```python
|
89 |
from transformers import BertTokenizer, TFBertModel
|
90 |
+
tokenizer = BertTokenizer.from_pretrained('uer/chinese_roberta_L-8_H-512')
|
91 |
+
model = TFBertModel.from_pretrained("uer/chinese_roberta_L-8_H-512")
|
92 |
text = "用你喜欢的任何文本替换我。"
|
93 |
encoded_input = tokenizer(text, return_tensors='tf')
|
94 |
output = model(encoded_input)
|