stanfordnlp/sentiment140
Updated • 3.32k • 29
How to use jasmeeetsingh/twitter-depression-classification-sentiment140 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jasmeeetsingh/twitter-depression-classification-sentiment140") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jasmeeetsingh/twitter-depression-classification-sentiment140")
model = AutoModelForSequenceClassification.from_pretrained("jasmeeetsingh/twitter-depression-classification-sentiment140")jasmeeetsingh/twitter-depression-classification-sentiment140 is a deep learning model trained to classify whether a given tweet is suicidal or not. The model is based on a transformer architecture and fine-tuned on a large corpus of tweets annotated as suicidal or non-suicidal.
The model is intended to be used to classify tweets automatically as suicidal or non-suicidal. It can be used to analyze large volumes of tweets and identify users who may be at risk of depression, as well as to monitor the prevalence of depression-related discussions on social media platforms.
The model was trained on a 6GB RTX 3060