SentenceTransformer based on Alibaba-NLP/gte-modernbert-base
This is a
sentence-transformers
model finetuned from
Alibaba-NLP/gte-modernbert-base
. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
from sentence_transformers import SentenceTransformer
# Download from the š¤ Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
"How is 'associated undertaking' defined, and what criteria determine the significant influence of one undertaking over another in terms of voting rights?",
"ā¼B\n\n(6)\n\nāpurchase priceā means the price payable and any incidental expenses minus any incidental reductions in the cost of acquisition;\n\n(7)\n\nāproduction costā means the purchase price of raw materials, consumables and other costs directly attributable to the item in question. Member States shall permit or require the inclusion of a reasonable proportion of fixed or variable overhead costs indirectly attributable to the item in question, to the extent that they relate to the period of production. Distribution costs shall not be included;\n\n(8)\n\nāvalue adjustmentā means the adjustments intended to take account of changes in the values of individual assets established at the balance sheet date, whether the change is final or not;\n\n(9)\n\nāparent undertakingā means an undertaking which controls one or more subsidiary undertakings;\n\n(10)\n\nāsubsidiary undertakingā means an undertaking controlled by a parent undertaking, including any subsidiary undertaking of an ultimate parent undertaking;\n\n(11)\n\nāgroupā means a parent undertaking and all its subsidiary undertakings;\n\n(12)\n\nāaffiliated undertakingsā means any two or more undertakings within a group;\n\n(13)\n\nāassociated undertakingā means an undertaking in which another undertaking has a participating interest, and over whose operating and financial policies that other undertaking exercises significant influence. An undertaking is presumed to exercise a significant influence over another undertaking where it has 20 % or more of the shareholders' or members' voting rights in that other undertaking;\n\n(14)\n\nāinvestment undertakingsā means:\n\n(a)\n\nundertakings the sole object of which is to invest their funds in various securities, real property and other assets, with the sole aim of spreading investment risks and giving their shareholders the benefit of the results of the management of their assets,\n\n(b)\n\nundertakings associated with investment undertakings with fixed capital, if the sole object of those associated undertakings is to acquire fully paid shares issued by those investment undertakings without prejudice to point (h) of Article 22(1) of Directive 2012/30/EU;\n\n(15)",
'and non-European non-financial corporations not subject to the disclosure obligations laid down in Directive 2013/34/EU. That information may be disclosed only once, based on counterpartiesā turnover alignment for the general-purpose lending loans, as in the case of the GAR. The first disclosure reference date of this template is as of 31 December 2024. Institutions are not required to disclose this information before 1 January 2025. ---|---|---',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Approximate statistics based on the first 1000 samples:
sentence_0
sentence_1
type
string
string
details
min: 13 tokens
mean: 34.18 tokens
max: 251 tokens
min: 7 tokens
mean: 231.33 tokens
max: 2146 tokens
Samples:
sentence_0
sentence_1
How is 'energy efficiency' defined in the context of Directive (EU) 2018/2001?
of Directive (EU) 2018/2001; --- --- (8) āenergy efficiencyā means the ratio of output of performance, service, goods or energy to input of energy; --- --- (9) āenergy savingsā means an amount of saved energy determined by measuring or estimating consumption, or both,, before and after the implementation of an energy efficiency improvement measure, whilst ensuring normalisation for external conditions that affect energy consumption; --- --- (10) āenergy efficiency improvementā means an increase in energy efficiency as a result of any technological, behavioural or economic changes; --- --- (11) āenergy serviceā means the physical benefit, utility or good derived from a combination of energy with energy-efficient technology or with action,
What are the sources of information that the external experts will use to create the list of conflict-affected and high-risk areas?
2.
The Commission shall call upon external expertise that will provide an indicative, non-exhaustive, regularly updated list of conflict-affected and high-risk areas. That list shall be based on the external experts' analysis of the handbook referred to in paragraph 1 and existing information from, inter alia, academics and supply chain due diligence schemes. Union importers sourcing from areas which are not mentioned on that list shall also maintain their responsibility to comply with the due diligence obligations under this Regulation.
Article 15
Committee procedure
1.
The Commission shall be assisted by a committee. That committee shall be a committee within the meaning of Regulation (EU) No 182/2011.
2.
What is the maximum time frame for completing the undertaking according to the technical specifications set out in Annexes II and III after the Directive enters into force?
is undertaken according to the technical specifications set out in Annexes II and III and that it is completed at the latest four years after the date of entry into force of this Directive.
2. The analyses and reviews mentioned under paragraph 1 shall be reviewed, and if necessary updated at the latest 13 years after the date of entry into force of this Directive and every six years thereafter.
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MatryoshkaLoss
@misc{kusupati2024matryoshka,
title={Matryoshka Representation Learning},
author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
year={2024},
eprint={2205.13147},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Runs of amentaphd gte-modernbert-base on huggingface.co
25
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
-2
30-day runs
More Information About gte-modernbert-base huggingface.co Model
gte-modernbert-base huggingface.co
gte-modernbert-base huggingface.co is an AI model on huggingface.co that provides gte-modernbert-base's model effect (), which can be used instantly with this amentaphd gte-modernbert-base model. huggingface.co supports a free trial of the gte-modernbert-base model, and also provides paid use of the gte-modernbert-base. Support call gte-modernbert-base model through api, including Node.js, Python, http.
gte-modernbert-base huggingface.co is an online trial and call api platform, which integrates gte-modernbert-base's modeling effects, including api services, and provides a free online trial of gte-modernbert-base, you can try gte-modernbert-base online for free by clicking the link below.
amentaphd gte-modernbert-base online free url in huggingface.co:
gte-modernbert-base is an open source model from GitHub that offers a free installation service, and any user can find gte-modernbert-base on GitHub to install. At the same time, huggingface.co provides the effect of gte-modernbert-base install, users can directly use gte-modernbert-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
gte-modernbert-base install url in huggingface.co: