Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:16890
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use jaimevera1107/all-MiniLM-pubmed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jaimevera1107/all-MiniLM-pubmed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jaimevera1107/all-MiniLM-pubmed") sentences = [ "What effect does Concanavalin-A have on the generation of cytotoxic lymphocytes in alloimmunized mice when administered before or during immunization?", "Fluorescence studies revealed that 70% of pre-mRNA in nuclear ribonucleoprotein particles is accessible for dye binding, with approximately 50% AU-nucleotide content in the double-stranded regions.", "Concanavalin-A enhances the generation of cytotoxic lymphocytes in alloimmunized mice when administered before or during immunization.", "Between 1966 and 1973, of 600 mediastinoscopies for pulmonary carcinoma, 43% were positive, leading to varied surgical outcomes, with a 63% survival rate after 2 to 3.5 years for the first 100 operated patients." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!