Views
No views yet
numbda-webnewsnumbda-webnews is a news classification model fine-tuned from roberta-base-finetuned-ifeng-chinese with a new dataset of approximately 40k news articles crawled from news websites in China.1from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
2
3# "wenh06/numbda-webnews" can be replaced with local path to the model directory
4tokenizer = AutoTokenizer.from_pretrained("wenh06/numbda-webnews")
5model = AutoModelForSequenceClassification.from_pretrained("wenh06/numbda-webnews")
6
7pipeline = pipeline("text-classification", model=model, tokenizer=tokenizer)