Text Classification
Transformers
Safetensors
Chinese
bert
Generated from Trainer
text-embeddings-inference
Instructions to use roberthsu2003/for_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roberthsu2003/for_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="roberthsu2003/for_classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("roberthsu2003/for_classification") model = AutoModelForSequenceClassification.from_pretrained("roberthsu2003/for_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files26 unmodified lines27282930313233343526 unmodified lines- Accuracy: 0.9189- F1: 0.9415## Model descriptionMore information needed## Intended uses & limitations26 unmodified lines272829303132333435363738394041424344454626 unmodified lines- Accuracy: 0.9189- F1: 0.9415## 模型實作```pythonfrom transformers import pipelineid2_label = {'LABEL_0':"負評",'LABEL_1':"正評"}pipe = pipeline('text-classification', model="roberthsu2003/for_classification")sen="服務人員都很親切"print(sen,id2_label[pipe(sen)[0]['label']])sen1="服務人員都不親切"print(sen1,id2_label[pipe(sen1)[0]['label']])```## Intended uses & limitations
README.md+13-2