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

carlesoctav
/
SentimentClassifierDune

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

Instructions to use carlesoctav/SentimentClassifierDune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • setfit

    How to use carlesoctav/SentimentClassifierDune with setfit:

    from setfit import SetFitModel
    
    model = SetFitModel.from_pretrained("carlesoctav/SentimentClassifierDune")
  • sentence-transformers

    How to use carlesoctav/SentimentClassifierDune with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("carlesoctav/SentimentClassifierDune")
    
    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
SentimentClassifierDune
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
carlesoctav's picture
carlesoctav
Add SetFit model
023d036 verified about 2 years ago
  • 1_Pooling
    Add SetFit model about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    35.6 kB
    Add SetFit model about 2 years ago
  • config.json
    603 Bytes
    Add SetFit model about 2 years ago
  • config_sentence_transformers.json
    170 Bytes
    Add SetFit model about 2 years ago
  • config_setfit.json
    85 Bytes
    Add SetFit model about 2 years ago
  • model.safetensors
    438 MB
    xet
    Add SetFit model about 2 years ago
  • model_head.pkl

    Detected Pickle imports (7)

    • "torch._utils._rebuild_parameter",
    • "setfit.modeling.SetFitHead",
    • "collections.OrderedDict",
    • "torch.nn.modules.linear.Linear",
    • "torch.device",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.storage._load_from_bytes"

    How to fix it?

    7.64 kB
    xet
    Add SetFit model about 2 years ago
  • modules.json
    229 Bytes
    Add SetFit model about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add SetFit model about 2 years ago
  • special_tokens_map.json
    964 Bytes
    Add SetFit model about 2 years ago
  • tokenizer.json
    712 kB
    Add SetFit model about 2 years ago
  • tokenizer_config.json
    1.47 kB
    Add SetFit model about 2 years ago
  • vocab.txt
    232 kB
    Add SetFit model about 2 years ago