MentalRisk24
Collection
Models created for the mentalRisk24 • 16 items • Updated
How to use driwnet/LongFormer_MentalRiskT1_aprox1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="driwnet/LongFormer_MentalRiskT1_aprox1") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("driwnet/LongFormer_MentalRiskT1_aprox1")
model = AutoModelForSequenceClassification.from_pretrained("driwnet/LongFormer_MentalRiskT1_aprox1", device_map="auto")No model card