Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:2828
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use freelawproject/modernbert-embed-base_finetune_512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use freelawproject/modernbert-embed-base_finetune_512 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("freelawproject/modernbert-embed-base_finetune_512") sentences = [ "search_document: The first respects the interest in which the litigation is being prosecuted, and the second is the failure of the plaintiff to either plead or prove a cause of action on his behalf as a stockholder. If this litigation had been honestly instituted by a stockholder for the protection of his and other stockholders ’ rights, and was not so evidently a suit instigated by a rival company for its own interests, we should strive to be astute to discover some remedy for a very evident wrong. The far reaching and flexible nature of equitable powers might, with proper proof and under other circumstances, enable us to do justice as between the stockholders of the Grey Creek Company and Chappell, its officer and director. But we have no inclination to struggle for this result, because it is a well settled principle that whenever it is made to appear that the suit was. not begun in good faith by a shareholder for the protection of his rights, but was in reality originated and prosecuted by another corporation for its own benefit, the court will consider what led the plaintiff to institute his suit, and, finding some other reason than a desire to protect stockholders ’ rights, will refuse to entertain the bill. Forrest v. Manchester, etc., R ' way Co., 4 De G., F. & J. 19 ( 65 Eng. Chan., 125 ) ; Filder v. London, etc., R ' way Co., 1 H. & M. 489 ; Belmont v. Erie R ' way Co. et al., 52 Barb. 637 ; Waterbury v. The Merchants ’ Union Express Co., 50 Barb. 157 ; Camblos v. The P. & R. R. R. Co., 4 Brewster, 563. Naturally, the cases respecting this proposition are limited, since the question could not often arise. It seldom happens that shareholders, otherwise than for the protection of their own interests, come into courts of equity to seek redress for wrongs done the corporation of which they are * 331members. But wherever it is apparent that this has been done, the courts have never hesitated to send the plaintiff out of court and refuse him relief.", "search_query: When can a shareholder's lawsuit be dismissed for lack of good faith?", "search_query: What are the requirements for filing a patent application in the United States?", "search_query: How are disputes over partnership assets and liabilities resolved in court?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!