How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("fill-mask", model="yentinglin/bert-base-zhtw")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("yentinglin/bert-base-zhtw")
model = AutoModelForMaskedLM.from_pretrained("yentinglin/bert-base-zhtw")
Quick Links

Usage 🤗 Transformers pipeline

from transformers import pipeline

embedder = pipeline("feature-extraction", "yentinglin/bert-base-zhtw")

embeddings = embedder("台灣使用繁體中文", return_tensors=True)

print(embeddings.shape)
# torch.Size([1, 10, 768])

license: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en

Disclaimer

This model is provided “as‑is” and without warranties of any kind. Users are solely responsible for evaluating the accuracy and suitability of the outputs. The developers assume no liability for any direct or indirect damages arising from its use.
The model is strictly not intended for high‑risk applications such as medical diagnosis, legal advice, or financial investment. For such use cases, please consult qualified professionals.

本模型「如是」(as‑is)提供,使用者須自行評估結果之正確性與適用性。開發者對於使用本模型所引發之任何直接或間接損失,不承擔任何法律責任。
嚴禁用於醫療診斷、法律諮詢、金融投資等高風險場景;若有相關需求,請尋求專業人員協助。

Downloads last month
10
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for yentinglin/bert-base-zhtw

Finetunes
1 model

Collection including yentinglin/bert-base-zhtw