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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

AkshitaS
/
bhasha-embed-v0

Sentence Similarity
sentence-transformers
Safetensors
English
Hindi
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use AkshitaS/bhasha-embed-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use AkshitaS/bhasha-embed-v0 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("AkshitaS/bhasha-embed-v0")
    
    sentences = [
        "प्रणव ने कानून की पढ़ाई की और ३० की उम्र में राजनीति से जुड़ गए",
        "प्रणव ने कानून की पढ़ाई की और ३० की उम्र में राजनीति से जुड़ गए",
        "Pranav studied law and became a politician at the age of 30.",
        "Pranav ne kanoon ki padhai kari aur 30 ki umar mein rajneeti se jud gaye.",
        "Pranav ne law ki padhai kari aur 30 ki umar mein politics se jud gaye.",
        "प्रणव का जन्म राजनीतिज्ञों के परिवार में हुआ था",
        "Pranav was born in a family of politicians",
        "Pranav ka janm rajneetigyon ke parivar mein hua tha",
        "Pranav ka janm politicians ki family mein hua tha"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [9, 9]
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Can we finetune a binary classifier on top of bhasha-embed to use its Hinglish capabilities for text classification tasks?

#1 opened over 1 year ago by
man-ml
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs