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
Evaluation results used for calculating perplexity.
#18
by sentosa - opened
I have a question, can perplexity and language probability be used for statistical analysis of Chinese documents?
I tried to calculate the perplexity of my document statistically, but the results were not quite as expected, some were less than ideal.
How to test the model。I input my own text and use a model for output