Instructions to use junnyu/roformer_chinese_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- paddlenlp
How to use junnyu/roformer_chinese_base with paddlenlp:
from paddlenlp.transformers import AutoTokenizer, RoFormerForMaskedLM tokenizer = AutoTokenizer.from_pretrained("junnyu/roformer_chinese_base", from_hf_hub=True) model = RoFormerForMaskedLM.from_pretrained("junnyu/roformer_chinese_base", from_hf_hub=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -33,7 +33,9 @@ for i, id in enumerate(tokenizer.encode(text)):
|
|
| 33 |
outputs_sentence += "".join(
|
| 34 |
tokenizer.convert_ids_to_tokens([id], skip_special_tokens=True))
|
| 35 |
print(outputs_sentence)
|
| 36 |
-
# 今天[天气||天||心情||阳光||空气]很好,我[想||要||打算||准备||喜欢]去公园玩。
|
|
|
|
|
|
|
| 37 |
```
|
| 38 |
## 引用
|
| 39 |
|
|
|
|
| 33 |
outputs_sentence += "".join(
|
| 34 |
tokenizer.convert_ids_to_tokens([id], skip_special_tokens=True))
|
| 35 |
print(outputs_sentence)
|
| 36 |
+
# RoFormer 今天[天气||天||心情||阳光||空气]很好,我[想||要||打算||准备||喜欢]去公园玩。
|
| 37 |
+
# PLUS WoBERT 今天[天气||阳光||天||心情||空气]很好,我[想||要||打算||准备||就]去公园玩。
|
| 38 |
+
# WoBERT 今天[天气||阳光||天||心情||空气]很好,我[想||要||就||准备||也]去公园玩。
|
| 39 |
```
|
| 40 |
## 引用
|
| 41 |
|