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

vahidthegreat
/
StanceAware-SBERT

sentence-transformers
Safetensors
Transformers
English
opinion-mining
stance-detection
social-computing
LoRA
Model card Files Files and versions
xet
Community
2

Instructions to use vahidthegreat/StanceAware-SBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use vahidthegreat/StanceAware-SBERT with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("vahidthegreat/StanceAware-SBERT")
    
    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]
  • Transformers

    How to use vahidthegreat/StanceAware-SBERT with Transformers:

    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("vahidthegreat/StanceAware-SBERT", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
StanceAware-SBERT
Ctrl+K
Ctrl+K
  • 1 contributor
History: 16 commits
vahidthegreat's picture
vahidthegreat
Update README.md
3333efc verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    10.2 kB
    Update README.md over 1 year ago
  • adapter_config.json
    697 Bytes
    Update safetensors keys; update README usage (#2) almost 2 years ago
  • adapter_model.safetensors
    9.45 MB
    xet
    Update safetensors keys; update README usage (#2) almost 2 years ago
  • special_tokens_map.json
    964 Bytes
    Upload tokenizer almost 2 years ago
  • tokenizer.json
    711 kB
    Upload tokenizer almost 2 years ago
  • tokenizer_config.json
    1.58 kB
    Upload tokenizer almost 2 years ago
  • vocab.txt
    232 kB
    Upload tokenizer almost 2 years ago