Sentence Similarity
sentence-transformers
Safetensors
gte
feature-extraction
Generated from Trainer
dataset_size:46338
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
custom_code
Eval Results (legacy)
Instructions to use amentaphd/eu-regulation-embeddings-snowflake-m-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use amentaphd/eu-regulation-embeddings-snowflake-m-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("amentaphd/eu-regulation-embeddings-snowflake-m-v2", trust_remote_code=True) sentences = [ "What are the anticipated financial effects that could arise from material risks associated with resource use and circular economy, and how might these risks impact the financial position, performance, and cash flows of an undertaking over different time frames?", "(a)\n\nanticipated financial effects due to material risks arising from material resource use and circular economy -related impacts and dependencies and how these risks have or could reasonably be expected to have) a material influence on the undertaking’s financial position, financial performance performance, and cash flows over the short-, medium- and long-term; and\n\n(b)\n\nanticipated financial effects due to material opportunities related to resource use and circular economy.\n\nThe disclosure shall include:\n\n(a)", "combination of hydrocarbons obtained as a raffinate from a sulphuric acid treating process. It consists of hydrocarbons having carbon numbers predominantly in the range of C7 through C12 and boiling in the range of approximately 90 °C to 230 °C.) 649-351-00-7 265-115-2 64742-15-0 P Naphtha (petroleum), chemically neutralised heavy; Low boiling point naphtha — unspecified (A complex combination of hydrocarbons produced by a treating process to remove acidic materials. It consists of hydrocarbons having carbon numbers predominantly in the range of C6 through C12 and boiling in the range of approximately 65 °C to 230 °C.) 649-352-00-2 265-122-0 64742-22-9 P Naphtha (petroleum), chemically neutralised light; Low boiling point naphtha —", "2. Member States shall require any investment firm wishing to establish a branch within the territory of another Member State or to use tied agents established in another Member State in which it has not established a branch, first to notify the competent authority of its home Member State and to provide it with the following information:\n\n(a) the Member States within the territory of which it plans to establish a branch or the Member States in which it has not established a branch but plans to use tied agents established there;\n\n(b) a programme of operations setting out, inter alia, the investment services and/or activities as well as the ancillary services to be offered;\n\n(c) where established, the organisational structure of the branch and indicating whether the branch intends to use tied agents and the identity of those tied agents;\n\n(d) where tied agents are to be used in a Member State in which an investment firm has not established a branch, a description of the intended use of the tied agent(s) and an organisational structure, including reporting lines, indicating how the agent(s) fit into the corporate structure of the investment firm;\n\n(e) the address in the host Member State from which documents may be obtained;\n\n(f) the names of those responsible for the management of the branch or of the tied agent.\n\nWhere an investment firm uses a tied agent established in a Member State outside its home Member State, such tied agent shall be assimilated to the branch, where one is established, and shall in any event be subject to the provisions of this Directive relating to branches." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "250001": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "extra_special_tokens": {}, | |
| "mask_token": "<mask>", | |
| "max_length": 512, | |
| "model_max_length": 32768, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<pad>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "</s>", | |
| "stride": 0, | |
| "tokenizer_class": "XLMRobertaTokenizerFast", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<unk>" | |
| } | |