sentence-transformers How to use amentaphd/gte-modernbert-base with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("amentaphd/gte-modernbert-base")
sentences = [
"What are the specific points and subparagraphs mentioned in the context of Article 4(3) that relate to the introductory wording and how do they connect to the provisions outlined in Article 3(1)?",
"51 - Article 2, points 52, 53,54, 55 and 56 - Article 3 - Article 4(1) Article 3(1), first subparagraph Article 4(2), first subparagraph Article 4(2), second subparagraph Article 3(1), second subparagraph, introductory wording Article 4(3), first subparagraph, introductory wording Article 3(1), second subparagraph, points (a) and (b) Article 4(3), first subparagraph, points (a) and (b) Article 3(1), second subparagraph, point (c) - Article 3(1), second subparagraph, point (d) Article 4(3), first subparagraph, point (c) Article 3(1), third subparagraph, introductory wording - - Article 4(3), first subparagraph, point (d), introductory wording - Article 4(3), first subparagraph, points (d)(i), (ii) and (iii) Article 3(1), third subparagraph, point (a) Article 4(3), first subparagraph, point (d)(iv) - Article 4(3), first subparagraph, point (e), introductory wording Article 3(1), third subparagraph, point (b) Article 4(3), first subparagraph, point (e)(i) Article 3(1), third subparagraph, point (c) Article 4(3), first subparagraph, point (e)(ii) Article 3(1), third subparagraph, point (d) Article 4(3), first subparagraph, point (e)(iii) Article 3(1), third subparagraph, point (e) - - Article 4(3), first subparagraph, point (e)(iv) Article 3(2) and (3) - Article 3(4) Article 35(6) Article 3(5) and (6) - - Article 4(4) - Article 4(5) Article 4(6) Article 4(7) - Article 5 Article 5(1), first subparagraph Article 6(1), first subparagraph Article 5(1), second subparagraph Article 6(1), fifth subparagraph - Article 6(1), second and third subparagraph Article 5(1), third subparagraph Article 6(1), fourth subparagraph Article 5(1), fourth and fifth subparagraph - Article 5(2) - Article 6(2) Article 6(2), second subparagraph Article 5(3) Article 6(3) Article 5(4) Article 6(4) Article 5(5) Article 6(5) Article 5(5), first subparagraph, point (b) Article 6(5), second subparagraph, point (c) - Article 6(5), second subparagraph, point (b) Article 5(6) Article 6(6) - Article 6(6), second subparagraph, point (a) Article 5(6), second subparagraph Article 6(6), second subparagraph, point (b) Article 5(6), third subparagraph Article 6(6), third subparagraph Article 5(7) - Article 6(1), first subparagraph Article 7(1), first",
"ii.\n\nmeasures to protect against retaliation its own workers who are whistleblowers in accordance with the applicable law transposing Directive (EU) 2019/1937 of the European Parliament and of the Council ( 121 );\n\n(d)\n\nwhere the undertaking has no policies on the protection of whistle-blowers ( 122 ), it shall state this and whether it has plans to implement them and the timetable for implementation;\n\n(e)\n\nbeyond the procedures to follow-up on reports by whistleblowers in accordance with the applicable law transposing Directive (EU) 2019/1937, whether the undertaking has procedures to investigate business conduct incidents , including incidents of corruption and bribery , promptly, independently and objectively;\n\n(f)\n\nwhere applicable, whether the undertaking has in place policies with respect to animal welfare;\n\n(g)\n\nthe undertaking’s policy for training within the organisation on business conduct, including target audience, frequency and depth of coverage; and\n\n(h)\n\nthe functions within the undertaking that are most at risk in respect of corruption and bribery .\n\nUndertakings that are subject to legal requirements under national law transposing Directive (EU) 2019/1937, or to equivalent legal requirements with regard to the protection of whistle-blowers, may comply with the disclosure specified in paragraph 10 (d) by stating that they are subject to those legal requirements.\n\nDisclosure Requirement G1-2 – Management of relationships with suppliers\n\nThe undertaking shall provide information about the management of its relationships with its suppliers and its impacts on its supply chain.\n\nThe objective of this Disclosure Requirement is to provide an understanding of the undertaking’s management of its procurement process including fair behaviour with suppliers .\n\nThe undertaking shall provide a description of its policy to prevent late payments, specifically to SMEs.\n\nThe disclosure required under paragraph 12 shall include the following information:\n\n(a)\n\nthe undertaking’s approach to its relationships with its suppliers , taking account of risks to the undertaking related to its supply chain and of impacts on sustainability matters ; and\n\n(b)\n\nwhether and how it takes into account social and environmental criteria for the selection of its suppliers.\n\nDisclosure Requirement G1-3 – Prevention and detection of corruption and bribery\n\nThe undertaking shall provide information about its system to prevent and detect, investigate, and respond to allegations or incidents relating to corruption and bribery including the related training.\n\nThe objective of this Disclosure Requirement is to provide transparency on the key procedures of the undertaking to prevent, detect, and address allegations about corruption and bribery . This includes the training provided to own workers and/or information provided internally or to suppliers .\n\nThe disclosure required under paragraph 16 shall include the following information:\n\n(a)\n\na description of the procedures in place to prevent, detect, and address allegations or incidents of corruption and bribery ;\n\n(b)\n\nwhether the investigators or investigating committee are separate from the chain of management involved in the matter; and\n\n(c)\n\nthe process, if any, to report outcomes to the administrative, management and supervisory bodies .\n\nWhere the undertaking has no such procedures in place, it shall disclose this fact and, where applicable, its plans to adopt them.\n\nThe disclosures required by paragraph 16 shall include information about how the undertaking communicates its policies to those for whom they are relevant to ensure that the policy is accessible and that they understand its implications.\n\nThe disclosure required by paragraph 16 shall include information about the following with respect to training:\n\n(a)\n\nthe nature, scope and depth of anti- corruption and anti- bribery training programmes offered or required by the undertaking;\n\n(b)\n\nthe percentage of functions-at-risk covered by training programmes; and\n\n(c)\n\nthe extent to which training is given to members of the administrative, management and supervisory bodies.\n\nMetrics and targets\n\nDisclosure Requirement G1-4 – Incidents of corruption or bribery\n\nThe undertaking shall provide information on incidents of corruption or bribery during the reporting period.",
"(39)\n\n‘algorithmic trading’ means trading in financial instruments where a computer algorithm automatically determines individual parameters of orders such as whether to initiate the order, the timing, price or quantity of the order or how to manage the order after its submission, with limited or no human intervention, and does not include any system that is only used for the purpose of routing orders to one or more trading venues or for the processing of orders involving no determination of any trading parameters or for the confirmation of orders or the post-trade processing of executed transactions;\n\n(40)\n\n‘high-frequency algorithmic trading technique’ means an algorithmic trading technique characterised by:\n\n(a)"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]