Text Classification
setfit
Safetensors
sentence-transformers
roberta
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use mini1013/master_cate_bc2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use mini1013/master_cate_bc2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("mini1013/master_cate_bc2") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use mini1013/master_cate_bc2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mini1013/master_cate_bc2") 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: 130 Bytes
ffbc619 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:72541f91f1a6bf40a36300688441f0c40491f038f8a9650fb0ff9d122204c295
size 25447
|