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

csalaam
/
bias-classification-setfit-model

Text Classification
sentence-transformers
PyTorch
setfit
mpnet
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use csalaam/bias-classification-setfit-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use csalaam/bias-classification-setfit-model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("csalaam/bias-classification-setfit-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]
  • setfit

    How to use csalaam/bias-classification-setfit-model with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("csalaam/bias-classification-setfit-model")
  • Notebooks
  • Google Colab
  • Kaggle
bias-classification-setfit-model / 1_Pooling
190 Bytes
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
csalaam's picture
csalaam
Add SetFit model
cd42424 about 3 years ago
  • config.json
    190 Bytes
    Add SetFit model about 3 years ago