Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

code-world
/
bert-mental-health-detection

Text Classification
Transformers
Safetensors
English
bert
mental-health
social-media
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use code-world/bert-mental-health-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use code-world/bert-mental-health-detection with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="code-world/bert-mental-health-detection")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("code-world/bert-mental-health-detection")
    model = AutoModelForSequenceClassification.from_pretrained("code-world/bert-mental-health-detection", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
bert-mental-health-detection
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Muhammad Usman
Add human-readable class labels to config
74d3f49 verified 4 months ago
  • .gitattributes
    1.52 kB
    initial commit 4 months ago
  • README.md
    2.31 kB
    Add model card 4 months ago
  • config.json
    1.02 kB
    Add human-readable class labels to config 4 months ago
  • model.safetensors
    438 MB
    xet
    Upload fine-tuned BERT (acc 83.4%, macro-F1 0.841) 4 months ago
  • tokenizer.json
    712 kB
    Upload fine-tuned BERT (acc 83.4%, macro-F1 0.841) 4 months ago
  • tokenizer_config.json
    351 Bytes
    Upload fine-tuned BERT (acc 83.4%, macro-F1 0.841) 4 months ago