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

tomaarsen
/
bert-base-uncased-cnn

Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use tomaarsen/bert-base-uncased-cnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use tomaarsen/bert-base-uncased-cnn with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tomaarsen/bert-base-uncased-cnn")
    
    sentences = [
        "A man is speaking.",
        "A man is talking on a phone.",
        "The boy is jumping into a lake.",
        "A cat is pouncing on a trampoline."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
bert-base-uncased-cnn
446 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
tomaarsen's picture
tomaarsen HF Staff
Add new SentenceTransformer model.
7a89e71 verified over 2 years ago
  • 1_CNN
    Add new SentenceTransformer model. over 2 years ago
  • 2_Pooling
    Add new SentenceTransformer model. over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    18.7 kB
    Add new SentenceTransformer model. over 2 years ago
  • config.json
    663 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • config_sentence_transformers.json
    211 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model. over 2 years ago
  • modules.json
    337 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • special_tokens_map.json
    125 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. over 2 years ago
  • tokenizer_config.json
    1.19 kB
    Add new SentenceTransformer model. over 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. over 2 years ago