TrajanovRisto/esg-sentiment
Viewer • Updated • 679 • 50 • 9
How to use TrajanovRisto/bert-esg with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="TrajanovRisto/bert-esg") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("TrajanovRisto/bert-esg")
model = AutoModelForSequenceClassification.from_pretrained("TrajanovRisto/bert-esg")