Instructions to use KBLab/emotional-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KBLab/emotional-classification with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KBLab/emotional-classification") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use KBLab/emotional-classification with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("KBLab/emotional-classification") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from KBLab/emotional-classification: direct link, hf CLI and curl.
- Browser
- Download file 1.2 MB
-
https://huggingface.co/KBLab/emotional-classification/resolve/refs%2Fpr%2F1/tokenizer.json
- Command line
-
hf download hf://KBLab/emotional-classification@refs/pr/1/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/KBLab/emotional-classification/resolve/refs%2Fpr%2F1/tokenizer.json
1.2 MB
File too large to display, you can check the raw version instead.