Instructions to use mspoulaei/DL-hf-workshop-sentiment-analysis-Persian_sentiment-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mspoulaei/DL-hf-workshop-sentiment-analysis-Persian_sentiment-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mspoulaei/DL-hf-workshop-sentiment-analysis-Persian_sentiment-finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mspoulaei/DL-hf-workshop-sentiment-analysis-Persian_sentiment-finetuned") model = AutoModelForSequenceClassification.from_pretrained("mspoulaei/DL-hf-workshop-sentiment-analysis-Persian_sentiment-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle