Instructions to use google-bert/bert-base-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google-bert/bert-base-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="google-bert/bert-base-chinese")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("google-bert/bert-base-chinese") model = AutoModelForMaskedLM.from_pretrained("google-bert/bert-base-chinese") - Inference
- Notebooks
- Google Colab
- Kaggle
Add apache 2 license
Browse filesSimilar to other BERTs and DistilBERTs, from what I can tell
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
---
|
| 2 |
language: zh
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
# Bert-base-chinese
|
|
@@ -67,9 +68,4 @@ tokenizer = AutoTokenizer.from_pretrained("bert-base-chinese")
|
|
| 67 |
|
| 68 |
model = AutoModelForMaskedLM.from_pretrained("bert-base-chinese")
|
| 69 |
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 1 |
---
|
| 2 |
language: zh
|
| 3 |
+
license: apache-2.0
|
| 4 |
---
|
| 5 |
|
| 6 |
# Bert-base-chinese
|
|
|
|
| 68 |
|
| 69 |
model = AutoModelForMaskedLM.from_pretrained("bert-base-chinese")
|
| 70 |
|
| 71 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|