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
Commit History
-
removed reference to gilleti
73f1663
-
readme fixes
0d27144 -
included swedish examples
aca7b51 -
include warnings
d864c94 -
fixed residual broken graph
6fc827f -
added id2label schema
31d778f -
fixed graph
75a82b1 -
update readme
abe349f -
update README with accuracy graph
68279a2 -
add experiment graph
47de8fc -
update readme
a23b783 -
Push model using huggingface_hub.
27f73e1 -
initial commit
7c7939d