Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:49962
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use PerRing/e5_ko with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use PerRing/e5_ko with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("PerRing/e5_ko") sentences = [ "query: 잡지는 인종차별적이고 성차별적인 유머를 제공했다.", "passage: 잡지는 인종과 성별에 대해 편견적인 농담을 실었다.", "passage: 잡지는 모든 사람을 존중하는 유머를 제공했다.", "passage: 그들은 중요하지만 활용도가 낮은 데이터를 보유하고 있었다." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from PerRing/e5_ko: direct link, hf CLI and curl.
- Browser
- Download file 964 Bytes
-
https://huggingface.co/PerRing/e5_ko/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://PerRing/e5_ko/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/PerRing/e5_ko/resolve/main/special_tokens_map.json
964 Bytes
| { | |
| "bos_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |