Text Classification
TF-Keras
Italian
custom-multitask
bert
alberto
multi-task-learning
italian
gender-classification
ideology-detection
Instructions to use leeeov4/PIDIT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use leeeov4/PIDIT with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("leeeov4/PIDIT") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files46 unmodified lines4748495051525317 unmodified lines7172737475767712 unmodified lines9091929394959646 unmodified lines## 🚀 Usage### 1. Load the model```pythonfrom huggingface_hub import snapshot_download17 unmodified linesalberto_tokenizer = AutoTokenizer.from_pretrained("leeeov4/PIDIT/alberto_tokenizer")```## Preprocessing Example```pythondef preprocess_text(text, max_length=250):12 unmodified lines```## Inference```pythontext = "Questo è un esempio di testo italiano per testare il modello."46 unmodified lines4748495051525317 unmodified lines7172737475767712 unmodified lines9091929394959646 unmodified lines## 🚀 Usage### Load model and tokenizers```pythonfrom huggingface_hub import snapshot_download17 unmodified linesalberto_tokenizer = AutoTokenizer.from_pretrained("leeeov4/PIDIT/alberto_tokenizer")```### Preprocessing Example```pythondef preprocess_text(text, max_length=250):12 unmodified lines```### Inference```pythontext = "Questo è un esempio di testo italiano per testare il modello."
README.md+3-3