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

adit94
/
sentencetest

Sentence Similarity
sentence-transformers
PyTorch
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use adit94/sentencetest with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("adit94/sentencetest")
    
    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
sentencetest / eval
613 Bytes
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
adit94's picture
adit94
Uploading files
a419e8f over 3 years ago
  • similarity_evaluation_sts-dev_results.csv
    613 Bytes
    Uploading files over 3 years ago