Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use FFZG-cleopatra/M2SA-text-only with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FFZG-cleopatra/M2SA-text-only with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="FFZG-cleopatra/M2SA-text-only")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("FFZG-cleopatra/M2SA-text-only") model = AutoModelForSequenceClassification.from_pretrained("FFZG-cleopatra/M2SA-text-only", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,6 +29,20 @@ It achieves the following results on the evaluation set:
|
|
| 29 |
|
| 30 |
More information needed
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
## Intended uses & limitations
|
| 33 |
|
| 34 |
More information needed
|
|
|
|
| 29 |
|
| 30 |
More information needed
|
| 31 |
|
| 32 |
+
## Usage
|
| 33 |
+
To use the model use the following script. Kindly set the ***device*** based on availability of the GPU.
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
from transformers import (pipeline)
|
| 37 |
+
|
| 38 |
+
analyzer = pipeline(
|
| 39 |
+
"sentiment-analysis", model="FFZG-cleopatra/M2SA-text-only"
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
input_text = "I feel amazing today."
|
| 43 |
+
print(analyzer(input_text)[0]["label"])
|
| 44 |
+
|
| 45 |
+
```
|
| 46 |
## Intended uses & limitations
|
| 47 |
|
| 48 |
More information needed
|