Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:5175
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
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
Ctrl+K