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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

sdiazlor
/
modernbert-embed-base-biencoder-human-rights

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

Instructions to use sdiazlor/modernbert-embed-base-biencoder-human-rights with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sdiazlor/modernbert-embed-base-biencoder-human-rights with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sdiazlor/modernbert-embed-base-biencoder-human-rights")
    
    sentences = [
        "into (ETS No. 55), which entered\n\ninto\n\nThe current state of signatures and ratifications of the Convention and its Protocols as well as the complete list of declarations and reservations are available at www.conventions.coe.int.\n\nOnly the English and French versions of the Convention are authentic.\n\nEuropean Court of Human Rights\n\nCouncil of Europe\n\n67075 Strasbourg cedex\n\nFrance\n\nwww.echr.coe.int\n\nContents",
        "Can you provide the current state of signatures and ratifications of the Convention and its Protocols as well as the complete list of declarations and reservations which are available at www.conventions.coe.int?",
        "What is the binding force of a judgment in a court case?",
        "The current state of signatures and ratifications of the OECD and its Conventions as well as the complete list of declarations and reservations are available at www.oecd.org."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
modernbert-embed-base-biencoder-human-rights
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
sdiazlor's picture
sdiazlor
Update README.md
a3f6b6d verified about 2 months ago
  • 1_Pooling
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    38.5 kB
    Update README.md about 2 months ago
  • config.json
    1.3 kB
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    204 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    596 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model over 1 year ago
  • sentence_bert_config.json
    54 Bytes
    Add new SentenceTransformer model over 1 year ago
  • special_tokens_map.json
    694 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    20.8 kB
    Add new SentenceTransformer model over 1 year ago