Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

soof
/
miswag-category-mapper

Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
dense
Generated from Trainer
dataset_size:41454
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use soof/miswag-category-mapper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use soof/miswag-category-mapper with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("soof/miswag-category-mapper")
    
    sentences = [
        "Bleu Eau De Parfum Men's Perfume عطر بلو للرجال",
        "Niche Perfumes | عطور النيش | عطور النيش | Beauty > Fragrance > Niche Perfumes | الجمال والعناية > عطور > عطور النيش",
        "Men Blouses | بلوز رجالي | بلوز رجالي | Clothes, Shoes & Bags > Men Clothes > Men Blouses > Men Blouses | ملابس، أحذية وحقائب > ملابس رجالية > بلوز وتيشرت رجالي > بلوز رجالي",
        "Men Shoes | حذاء رجالي | حذاء رجالي | Men Fashion > Men Shoes | ملابس رجالية > حذاء رجالي",
        "Men Niche Perfumes | عطور رجالية | عطور رجالية | Beauty > Fragrance > Niche Perfumes > Men Niche Perfumes | الجمال والعناية > عطور > عطور النيش > عطور رجالية",
        "Arabian, Oud & Makhmaria | عطور عربية ومخمرية | عطور عربية ومخمرية | Beauty > Fragrance > Arabian, Oud & Makhmaria | الجمال والعناية > عطور > عطور عربية ومخمرية",
        "Men Fragrance | عطور رجالية | بۆنی پیاوانی | Beauty > Fragrance > Fragrance > Men Fragrance | الجمال والعناية > عطور > العطور > عطور رجالية"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [7, 7]
  • Notebooks
  • Google Colab
  • Kaggle
miswag-category-mapper / model
1.13 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
soof's picture
soof
Copy 1_Pooling/config.json to model/ subdir
054f429 verified 3 months ago
  • 1_Pooling
    Copy 1_Pooling/config.json to model/ subdir 3 months ago
  • config.json
    776 Bytes
    Copy config.json to model/ subdir 3 months ago
  • config_sentence_transformers.json
    283 Bytes
    Move config_sentence_transformers.json to model/ subdir 3 months ago
  • model.safetensors
    1.11 GB
    xet
    Copy model.safetensors to model/ subdir 3 months ago
  • modules.json
    229 Bytes
    Move modules.json to model/ subdir 3 months ago
  • sentence_bert_config.json
    57 Bytes
    Move sentence_bert_config.json to model/ subdir 3 months ago
  • tokenizer.json
    17.1 MB
    xet
    Copy tokenizer.json to model/ subdir 3 months ago
  • tokenizer_config.json
    505 Bytes
    Copy tokenizer_config.json to model/ subdir 3 months ago