Text Classification
setfit
Safetensors
sentence-transformers
mpnet
generated_from_setfit_trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use msullivan/topic_temporary_setfitv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use msullivan/topic_temporary_setfitv2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("msullivan/topic_temporary_setfitv2") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use msullivan/topic_temporary_setfitv2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("msullivan/topic_temporary_setfitv2") 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
Upload label2id.json with huggingface_hub
Browse files- label2id.json +1 -0
label2id.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"Agriculture": 0, "Consumer Preferences": 1, "Harm Reduction": 2, "Historic Brand": 3, "Labor": 4, "Lawsuits": 5, "Lobbying": 6, "Market Reports": 7, "Personnel": 8, "Public Health": 9, "Regulatory": 10, "Responsible Marketing": 11, "Scientific Studies": 12, "Sustainability": 13, "Technology": 14, "Youth Access": 15}
|