Sentence Similarity
sentence-transformers
ONNX
Safetensors
encoderfile
Turkish
modernbert
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use veripazari/modernbert-tr-embed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use veripazari/modernbert-tr-embed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("veripazari/modernbert-tr-embed") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - encoderfile
How to use veripazari/modernbert-tr-embed with encoderfile:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from veripazari/modernbert-tr-embed: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/veripazari/modernbert-tr-embed/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://veripazari/modernbert-tr-embed/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/veripazari/modernbert-tr-embed/resolve/main/tokenizer_config.json
1.54 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "[PAD]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "[CLS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "[SEP]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "4": { | |
| "content": "[MASK]", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50000": { | |
| "content": "[EOS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "clean_up_tokenization_spaces": true, | |
| "cls_token": "[CLS]", | |
| "do_basic_tokenize": true, | |
| "do_lower_case": false, | |
| "eos_token": "[EOS]", | |
| "extra_special_tokens": {}, | |
| "mask_token": "[MASK]", | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 8192, | |
| "never_split": null, | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "strip_accents": false, | |
| "tokenize_chinese_chars": false, | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "unk_token": "[UNK]" | |
| } | |