Sentence Similarity
sentence-transformers
Safetensors
Persian
bert
feature-extraction
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use PartAI/Tooka-SBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use PartAI/Tooka-SBERT with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("PartAI/Tooka-SBERT") sentences = [ "درنا از پرندگان مهاجر با پاهای بلند و گردن دراز است.", "درناها با قامتی بلند و بالهای پهن، از زیباترین پرندگان مهاجر به شمار میروند.", "درناها پرندگانی کوچک با پاهای کوتاه هستند که مهاجرت نمیکنند.", "ایران برای بار دیگر توانست به مدال طلا دست یابد." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,7 +66,7 @@ Then you can load this model and run inference.
|
|
| 66 |
from sentence_transformers import SentenceTransformer
|
| 67 |
|
| 68 |
# Download from the 🤗 Hub
|
| 69 |
-
model = SentenceTransformer("
|
| 70 |
# Run inference
|
| 71 |
sentences = [
|
| 72 |
'درنا از پرندگان مهاجر با پاهای بلند و گردن دراز است.',
|
|
|
|
| 66 |
from sentence_transformers import SentenceTransformer
|
| 67 |
|
| 68 |
# Download from the 🤗 Hub
|
| 69 |
+
model = SentenceTransformer("PartAI/Tooka-SBERT")
|
| 70 |
# Run inference
|
| 71 |
sentences = [
|
| 72 |
'درنا از پرندگان مهاجر با پاهای بلند و گردن دراز است.',
|