Sentence Similarity
sentence-transformers
Safetensors
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use Youmnaaaa/Semantic-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Youmnaaaa/Semantic-model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Youmnaaaa/Semantic-model") 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] - Transformers
How to use Youmnaaaa/Semantic-model with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Youmnaaaa/Semantic-model") model = AutoModel.from_pretrained("Youmnaaaa/Semantic-model") - Notebooks
- Google Colab
- Kaggle
File size: 559 Bytes
501633c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {
"backend": "tokenizers",
"bos_token": "<s>",
"cls_token": "<s>",
"do_lower_case": true,
"eos_token": "</s>",
"is_local": false,
"mask_token": "<mask>",
"max_length": 128,
"model_max_length": 128,
"pad_to_multiple_of": null,
"pad_token": "<pad>",
"pad_token_type_id": 0,
"padding_side": "right",
"sep_token": "</s>",
"stride": 0,
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "TokenizersBackend",
"truncation_side": "right",
"truncation_strategy": "longest_first",
"unk_token": "<unk>"
}
|