Fill-Mask
Transformers
PyTorch
Chinese
bert
chinese
classical chinese
literary chinese
ancient chinese
Instructions to use Jihuai/bert-ancient-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jihuai/bert-ancient-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Jihuai/bert-ancient-chinese")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Jihuai/bert-ancient-chinese") model = AutoModelForMaskedLM.from_pretrained("Jihuai/bert-ancient-chinese", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
6057638 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:82b15eade45e2a1ae4f093bf73849549b547d0cdcf276c6c80455a8f97506ebe
size 461790482
|