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

mugwaneza
/
mbaza-model

Question Answering
sentence-transformers
Kinyarwanda
English
French
legal
kinyarwanda
nlp
Model card Files Files and versions
xet
Community

Instructions to use mugwaneza/mbaza-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use mugwaneza/mbaza-model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("mugwaneza/mbaza-model")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
mbaza-model
6.72 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
mugwaneza's picture
mugwaneza
Deploy Mbaza Legal AI Model with inference endpoint
fc1c893 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    7.35 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • assistant.py
    7.25 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • config.py
    11.2 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • dataset-all.csv
    1.58 MB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • greetings.csv
    10.7 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • inference.py
    2.1 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • law_embeddings.npy
    3.09 MB
    xet
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • law_meta.json
    1.65 MB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • penal_code.csv
    344 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • requirements.txt
    62 Bytes
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago
  • retriever.py
    8.19 kB
    Deploy Mbaza Legal AI Model with inference endpoint 7 months ago