reupload model 347f65c
Averie So commited on
How to use garNER/bert-base-chinese-zh-LM with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="garNER/bert-base-chinese-zh-LM") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("garNER/bert-base-chinese-zh-LM")
model = AutoModelForTokenClassification.from_pretrained("garNER/bert-base-chinese-zh-LM", device_map="auto")