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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

yting27
/
pba1-emotion-classification

Text Classification
sentence-transformers
English
Model card Files Files and versions
xet
Community
1

Instructions to use yting27/pba1-emotion-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use yting27/pba1-emotion-classification with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("yting27/pba1-emotion-classification")
    
    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
pba1-emotion-classification
442 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 19 commits
yting27's picture
yting27
Updated colab
c362bf8 over 3 years ago
  • dataset
    Edit doc over 3 years ago
  • model_pretrained
    Added trained model over 3 years ago
  • resources
    Modify performance evaluation part over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    12.6 kB
    Update README.md over 3 years ago
  • emotion classification-Yen Ting.ipynb
    419 kB
    Updated colab over 3 years ago