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

aparna1595
/
bert-tl-first1000samples

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

Instructions to use aparna1595/bert-tl-first1000samples with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use aparna1595/bert-tl-first1000samples with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("aparna1595/bert-tl-first1000samples")
    
    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
bert-tl-first1000samples
91.1 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
aparna1595's picture
aparna1595
Update config.json
0b48802 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    2.25 kB
    Upload 4 files over 3 years ago
  • config.json
    617 Bytes
    Update config.json over 3 years ago
  • pytorch_model.bin
    90.9 MB
    xet
    Upload 4 files over 3 years ago
  • vocab.txt
    232 kB
    Upload 4 files over 3 years ago