Sentence Similarity
sentence-transformers
PyTorch
Transformers
roberta
feature-extraction
text-embeddings-inference
Instructions to use api19750904/newspainclass-opt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use api19750904/newspainclass-opt with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("api19750904/newspainclass-opt") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use api19750904/newspainclass-opt with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("api19750904/newspainclass-opt") model = AutoModel.from_pretrained("api19750904/newspainclass-opt") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- dcf75fb80f5d74189b695be30bb77d616c08d7e46ee6b0c76120845d26a5a841
- Size of remote file:
- 499 MB
- SHA256:
- 2832c8489ce2e5216d9dfabc150a30d7e86bbd0e4390c2192ac358e040db1803
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.