Instructions to use aequa-tech/irony-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aequa-tech/irony-it with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aequa-tech/irony-it")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aequa-tech/irony-it") model = AutoModelForSequenceClassification.from_pretrained("aequa-tech/irony-it", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -60,7 +60,7 @@ It was tested on IronITA test set obtaining the following results:
|
|
| 60 |
- Accelerate 0.30.0
|
| 61 |
|
| 62 |
# How to use this model:
|
| 63 |
-
```
|
| 64 |
model = AutoModelForSequenceClassification.from_pretrained('aequa-tech/irony-it',num_labels=2)
|
| 65 |
tokenizer = AutoTokenizer.from_pretrained("m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alb3rt0")
|
| 66 |
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
|
|
|
| 60 |
- Accelerate 0.30.0
|
| 61 |
|
| 62 |
# How to use this model:
|
| 63 |
+
```Python
|
| 64 |
model = AutoModelForSequenceClassification.from_pretrained('aequa-tech/irony-it',num_labels=2)
|
| 65 |
tokenizer = AutoTokenizer.from_pretrained("m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alb3rt0")
|
| 66 |
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
|