Text Classification
setfit
Safetensors
sentence-transformers
bert
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use NLBSE/nlbse26_java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use NLBSE/nlbse26_java with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("NLBSE/nlbse26_java") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use NLBSE/nlbse26_java with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NLBSE/nlbse26_java") 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 NLBSE/nlbse26_java: direct link, hf CLI and curl.
- Browser
- Download file 53 Bytes
-
https://huggingface.co/NLBSE/nlbse26_java/resolve/main/config_setfit.json
- Command line
-
hf download hf://NLBSE/nlbse26_java/config_setfit.json
-
curl -L -o config_setfit.json https://huggingface.co/NLBSE/nlbse26_java/resolve/main/config_setfit.json
53 Bytes
| { | |
| "labels": null, | |
| "normalize_embeddings": false | |
| } |