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

aaa961
/
modernbert-embed-base-legal-no_MRL_symmetricMNRL_3sets

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

Instructions to use aaa961/modernbert-embed-base-legal-no_MRL_symmetricMNRL_3sets with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use aaa961/modernbert-embed-base-legal-no_MRL_symmetricMNRL_3sets with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("aaa961/modernbert-embed-base-legal-no_MRL_symmetricMNRL_3sets")
    
    sentences = [
        "What court case is referenced with citation 546 F.2d at 1015 n.14?",
        "3023980, at *4 (D.D.C. May 25, 2016).  The Court will not exercise its discretion to do so here, \ngiven the potentially important national security interests at stake.  Still, the Court advises the \n \n3 The Court also questions whether the Department has sufficiently shown that it conducted \nan adequate segregability analysis.  FOIA requires that “[a]ny reasonably segregable portion of a",
        "records, using methods which can be reasonably expected to produce the information requested.”  \nOglesby v. U.S. Dep’t of Army, 920 F.2d 57, 68 (D.C. Cir. 1990).  “Summary judgment may be \nbased on affidavit, if the declaration sets forth sufficiently detailed information ‘for a court to \ndetermine if the search was adequate.’”  Students Against Genocide v. Dep’t of State, 257 F.3d",
        "546 F.2d at 1015 n.14, in contravention of the D.C. Circuit’s limitation on that provision’s scope.  \nCf. Milner, 131 S. Ct. at 1269 (observing that “[u]nder this interpretation, an agency’s ‘internal \npersonnel rules and practices’ appears to mean all its internal rules and practices,” and thus “[t]he \nmodifier ‘personnel’ . . . does no modifying work”)."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
modernbert-embed-base-legal-no_MRL_symmetricMNRL_3sets
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
aaa961's picture
aaa961
Add new SentenceTransformer model
fb5da63 verified 6 months ago
  • 1_Pooling
    Add new SentenceTransformer model 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    26 kB
    Add new SentenceTransformer model 6 months ago
  • config.json
    1.9 kB
    Add new SentenceTransformer model 6 months ago
  • config_sentence_transformers.json
    282 Bytes
    Add new SentenceTransformer model 6 months ago
  • model.safetensors
    596 MB
    xet
    Add new SentenceTransformer model 6 months ago
  • modules.json
    349 Bytes
    Add new SentenceTransformer model 6 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 6 months ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model 6 months ago
  • tokenizer_config.json
    351 Bytes
    Add new SentenceTransformer model 6 months ago