Text Classification
setfit
Safetensors
sentence-transformers
generated_from_setfit_trainer
Eval Results (legacy)
Instructions to use cbpuschmann/klimacoder2_v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use cbpuschmann/klimacoder2_v0.1 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("cbpuschmann/klimacoder2_v0.1") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use cbpuschmann/klimacoder2_v0.1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cbpuschmann/klimacoder2_v0.1") 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
File size: 294 Bytes
2122bcf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | {
"labels": null,
"model_body": null,
"model_card_data": null,
"model_head": null,
"multi_target_strategy": null,
"normalize_embeddings": false,
"sentence_transformers_kwargs": {
"cache_folder": null,
"device": null,
"token": null,
"trust_remote_code": false
}
} |