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

  • Log In
  • Sign Up

tstadel
/
answer-classification-setfit-v2

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 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • setfit

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

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

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

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("tstadel/answer-classification-setfit-v2")
    
    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
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
tstadel's picture
tstadel
Push model using huggingface_hub.
adad652 over 2 years ago
  • 1_Pooling
    Push model using huggingface_hub. over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    3.73 kB
    Push model using huggingface_hub. over 2 years ago
  • config.json
    806 Bytes
    Push model using huggingface_hub. over 2 years ago
  • config_sentence_transformers.json
    124 Bytes
    Push model using huggingface_hub. over 2 years ago
  • config_setfit.json
    130 Bytes
    Push model using huggingface_hub. over 2 years ago
  • model.safetensors
    438 MB
    xet
    Push model using huggingface_hub. over 2 years ago
  • model_head.pkl
    25.5 kB
    xet
    Push model using huggingface_hub. over 2 years ago
  • modules.json
    349 Bytes
    Push model using huggingface_hub. over 2 years ago
  • sentence_bert_config.json
    52 Bytes
    Push model using huggingface_hub. over 2 years ago
  • special_tokens_map.json
    695 Bytes
    Push model using huggingface_hub. over 2 years ago
  • tokenizer.json
    712 kB
    Push model using huggingface_hub. over 2 years ago
  • tokenizer_config.json
    1.43 kB
    Push model using huggingface_hub. over 2 years ago
  • vocab.txt
    232 kB
    Push model using huggingface_hub. over 2 years ago