Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

tstadel
/
answer-classification-setfit-v2-binary-german

Text Classification
setfit
Safetensors
sentence-transformers
bert
generated_from_setfit_trainer
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use tstadel/answer-classification-setfit-v2-binary-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • setfit

    How to use tstadel/answer-classification-setfit-v2-binary-german with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("tstadel/answer-classification-setfit-v2-binary-german")
  • sentence-transformers

    How to use tstadel/answer-classification-setfit-v2-binary-german with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tstadel/answer-classification-setfit-v2-binary-german")
    
    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
answer-classification-setfit-v2-binary-german / 1_Pooling
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
tstadel's picture
tstadel
Push model using huggingface_hub.
cf1f2a1 verified about 2 years ago
  • config.json
    297 Bytes
    Push model using huggingface_hub. about 2 years ago