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

StyleDistance
/
styledistance

Sentence Similarity
sentence-transformers
Safetensors
English
roberta
datadreamer
datadreamer-0.35.0
Synthetic
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use StyleDistance/styledistance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use StyleDistance/styledistance with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("StyleDistance/styledistance")
    
    sentences = [
        "Did you hear about the Wales wing? He'll h8 2 withdraw due 2 injuries from future competitions.",
        "We're raising funds 2 improve our school's storage facilities and add new playground equipment!",
        "Did you hear about the Wales wing? He'll hate to withdraw due to injuries from future competitions."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
styledistance
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
AjayP13's picture
AjayP13
initial commit
79ce7c3 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago