Text Classification
setfit
Safetensors
sentence-transformers
mpnet
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use EmeraldMP/ANLP_kaggle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use EmeraldMP/ANLP_kaggle with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("EmeraldMP/ANLP_kaggle") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use EmeraldMP/ANLP_kaggle with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("EmeraldMP/ANLP_kaggle") 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] - Notebooks
- Google Colab
- Kaggle
Download config_setfit.json from EmeraldMP/ANLP_kaggle: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/EmeraldMP/ANLP_kaggle/resolve/main/config_setfit.json
- Command line
-
hf download hf://EmeraldMP/ANLP_kaggle/config_setfit.json
-
curl -L -o config_setfit.json https://huggingface.co/EmeraldMP/ANLP_kaggle/resolve/main/config_setfit.json
243 Bytes
| { | |
| "normalize_embeddings": false, | |
| "labels": [ | |
| "Education", | |
| "Entertainment", | |
| "Environment", | |
| "Fashion", | |
| "Finance", | |
| "Food", | |
| "Health", | |
| "Politics", | |
| "Science", | |
| "Sports", | |
| "Technology", | |
| "Travel" | |
| ] | |
| } |