Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

PartAI
/
Tooka-SBERT

Sentence Similarity
sentence-transformers
Safetensors
Persian
bert
feature-extraction
loss:CachedMultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
Tooka-SBERT
1.41 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 6 commits
mohalisad's picture
mohalisad
Update README.md
648c3a0 verified 11 months ago
  • 1_Pooling
    init over 1 year ago
  • .gitattributes
    1.52 kB
    improve attributes over 1 year ago
  • README.md
    4.66 kB
    Update README.md 11 months ago
  • config.json
    729 Bytes
    init over 1 year ago
  • config_sentence_transformers.json
    201 Bytes
    init over 1 year ago
  • model.safetensors
    1.41 GB
    xet
    init over 1 year ago
  • modules.json
    229 Bytes
    init over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    init over 1 year ago
  • special_tokens_map.json
    828 Bytes
    init over 1 year ago
  • tokenizer.json
    2.59 MB
    init over 1 year ago
  • tokenizer_config.json
    1.38 kB
    init over 1 year ago