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

sentence-transformers
/
average_word_embeddings_levy_dependency

Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Model card Files Files and versions
xet
Community
2

Instructions to use sentence-transformers/average_word_embeddings_levy_dependency with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/average_word_embeddings_levy_dependency with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/average_word_embeddings_levy_dependency")
    
    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
average_word_embeddings_levy_dependency / 0_WordEmbeddings
420 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 2 commits
tomaarsen's picture
tomaarsen HF Staff
Adding `safetensors` variant of this model (#2)
d074985 verified 10 months ago
  • model.safetensors
    209 MB
    xet
    Adding `safetensors` variant of this model (#2) 10 months ago
  • pytorch_model.bin
    209 MB
    xet
    Add new SentenceTransformer model. almost 5 years ago
  • whitespacetokenizer_config.json
    2.03 MB
    Add new SentenceTransformer model. almost 5 years ago
  • wordembedding_config.json
    164 Bytes
    Add new SentenceTransformer model. almost 5 years ago