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

ighina
/
roberta_topseg

Sentence Similarity
sentence-transformers
English
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use ighina/roberta_topseg with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ighina/roberta_topseg")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
roberta_topseg
1.59 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ighina's picture
ighina
Update README.md
3d4eb29 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    114 Bytes
    Update README.md over 3 years ago