Text Classification
Transformers
Safetensors
bert
Persian
Sentiment Analysis
BERT
text-embeddings-inference
Instructions to use Behpouyan/Behpouyan-Sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Behpouyan/Behpouyan-Sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Behpouyan/Behpouyan-Sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Behpouyan/Behpouyan-Sentiment") model = AutoModelForSequenceClassification.from_pretrained("Behpouyan/Behpouyan-Sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,8 +38,8 @@ Use the code below to get started with the model.
|
|
| 38 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 39 |
|
| 40 |
# Load the tokenizer and model
|
| 41 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 42 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 43 |
|
| 44 |
# Sample general sentences for testing
|
| 45 |
sentences = [
|
|
|
|
| 38 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 39 |
|
| 40 |
# Load the tokenizer and model
|
| 41 |
+
tokenizer = AutoTokenizer.from_pretrained("Behpouyan/Behpouyan-Sentiment")
|
| 42 |
+
model = AutoModelForSequenceClassification.from_pretrained("Behpouyan/Behpouyan-Sentiment")
|
| 43 |
|
| 44 |
# Sample general sentences for testing
|
| 45 |
sentences = [
|