Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

alpha-brain
/
pubmed-stsb-distilbert-base-mnrl

Sentence Similarity
sentence-transformers
Safetensors
distilbert
feature-extraction
Generated from Trainer
dataset_size:622302
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use alpha-brain/pubmed-stsb-distilbert-base-mnrl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use alpha-brain/pubmed-stsb-distilbert-base-mnrl with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("alpha-brain/pubmed-stsb-distilbert-base-mnrl")
    
    sentences = [
        "Does fTO Genotype interact with Improvement in Aerobic Fitness on Body Weight Loss During Lifestyle Intervention?",
        "The study population count 46 550 male workers, 1670 (3.6%) of whom incurred at least one work-related injury requiring admission to hospital within a period of 5 years following hearing tests conducted between 1987 and 2005. The noise exposure and hearing loss-related data were gathered during occupational noise-induced hearing loss (NIHL) screening. The hospital data were used to identify all members of the study population who were admitted, and the reason for admission. Finally, access to the death-related data made it possible to identify participants who died during the course of the study. Cox proportional hazards model taking into account hearing status, noise levels, age and cumulative duration of noise exposure at the time of the hearing test established the risk of work-related injuries leading to admission to hospital.",
        "Carriers of a hereditary mutation in BRCA are at high risk for breast and ovarian cancer. The first person from a family known to carry the mutation, the index person, has to share genetic information with relatives. This study is aimed at determining the number of relatives tested for a BRCA mutation, and the exploration of facilitating and debilitating factors in the transmission of genetic information from index patient to relatives.",
        "Not every participant responds with a comparable body weight loss to lifestyle intervention, despite the same compliance. Genetic factors may explain parts of this difference. Variation in fat mass and obesity-associated gene (FTO) is the strongest common genetic determinant of body weight. The aim of the present study was to evaluate the impact of FTO genotype differences in the link between improvement of fitness and reduction of body weight during a lifestyle intervention."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
pubmed-stsb-distilbert-base-mnrl
266 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
alpha-brain's picture
alpha-brain
Add new SentenceTransformer model.
9117268 verified almost 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    41.3 kB
    Add new SentenceTransformer model. almost 2 years ago
  • config.json
    565 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • config_sentence_transformers.json
    195 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • model.safetensors
    265 MB
    xet
    Add new SentenceTransformer model. almost 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • special_tokens_map.json
    695 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer_config.json
    1.28 kB
    Add new SentenceTransformer model. almost 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. almost 2 years ago