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

foudil
/
lens-emotion-encoder

Sentence Similarity
sentence-transformers
Safetensors
English
roberta
feature-extraction
emotion
contrastive-learning
multi-label
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use foudil/lens-emotion-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use foudil/lens-emotion-encoder with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("foudil/lens-emotion-encoder")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
lens-emotion-encoder
505 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
foudil's picture
foudil
add creds
de7da84 verified 3 days ago
  • .gitattributes
    1.52 kB
    initial commit 4 days ago
  • README.md
    10.6 kB
    add creds 3 days ago
  • config.json
    624 Bytes
    Upload folder using huggingface_hub 4 days ago
  • merges.txt
    456 kB
    Upload folder using huggingface_hub 4 days ago
  • model.safetensors
    499 MB
    xet
    Upload folder using huggingface_hub 4 days ago
  • proj.pt

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    1.84 MB
    xet
    Upload folder using huggingface_hub 4 days ago
  • special_tokens_map.json
    964 Bytes
    Upload folder using huggingface_hub 4 days ago
  • tokenizer.json
    3.56 MB
    Upload folder using huggingface_hub 4 days ago
  • tokenizer_config.json
    1.44 kB
    Upload folder using huggingface_hub 4 days ago
  • vocab.json
    798 kB
    Upload folder using huggingface_hub 4 days ago