How to use ethanyt/guwen-punc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ethanyt/guwen-punc")
# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ethanyt/guwen-punc") model = AutoModelForTokenClassification.from_pretrained("ethanyt/guwen-punc")
A Classical Chinese Punctuation Marker.
See also: