Instructions to use aequa-tech/sentiment-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aequa-tech/sentiment-it with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aequa-tech/sentiment-it")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aequa-tech/sentiment-it") model = AutoModelForSequenceClassification.from_pretrained("aequa-tech/sentiment-it", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from aequa-tech/sentiment-it: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/aequa-tech/sentiment-it/resolve/063e01612d21eb0d4de98a7c9d15d905904e34b9/README.md
- Command line
-
hf download hf://aequa-tech/sentiment-it@063e01612d21eb0d4de98a7c9d15d905904e34b9/README.md
-
curl -L -o README.md https://huggingface.co/aequa-tech/sentiment-it/resolve/063e01612d21eb0d4de98a7c9d15d905904e34b9/README.md
1.55 kB
metadata
license: apache-2.0
pipeline_tag: text-classification
tags:
- sentiment
language:
- it
Sentiment at aequa-tech
Model Description
- Developed by: aequa-tech
- Funded by: NGI-Search
- Language(s) (NLP): Italian
- License: apache-2.0
- Finetuned from model: AlBERTo
This model is a fine-tuned version of AlBERTo Italian model on sentiment analysis
Training Details
Training Data
Training Hyperparameters
- learning_rate: 2e-5
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam
Evaluation
Testing Data
It was tested on SENTIPOLC 2016 test set
Framework versions
- Transformers 4.30.2
- Pytorch 2.1.2
- Datasets 2.19.0
- Accelerate 0.30.0
How to use this model:
model = AutoModelForSequenceClassification.from_pretrained('aequa-tech/sentiment-it',num_labels=3, ignore_mismatched_sizes=True)
tokenizer = AutoTokenizer.from_pretrained("m-polignano-uniba/bert_uncased_L-12_H-768_A-12_italian_alb3rt0")
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer, top_k=None)
classifier("L'insostenibile leggerezza dell'essere")