Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

AdrianTheLegend
/
mnli-bert-cased

Sentence Similarity
sentence-transformers
bert
feature-extraction
dense
Generated from Trainer
dataset_size:50000
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use AdrianTheLegend/mnli-bert-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use AdrianTheLegend/mnli-bert-cased with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("AdrianTheLegend/mnli-bert-cased")
    
    sentences = [
        "Sometimes the people who represent themselves don't even know the significant facts of their case.",
        "The law is very easy to understand, so representing yourself in court is the best way to win a case.",
        "Sewage poured into upstairs windows from the streets while people whispered to each other.",
        "His faith may be lacking."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mnli-bert-cased
434 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
AdrianTheLegend's picture
AdrianTheLegend
Upload 5 files
3aa228e verified 15 days ago
  • .gitattributes
    1.52 kB
    initial commit 15 days ago
  • README.md
    16.1 kB
    Upload 5 files 15 days ago
  • config.json
    747 Bytes
    Upload 5 files 15 days ago
  • model (1).safetensors
    433 MB
    xet
    Upload 5 files 15 days ago
  • tokenizer.json
    669 kB
    Upload 5 files 15 days ago
  • tokenizer_config.json
    352 Bytes
    Upload 5 files 15 days ago