MAPAi/Inflation_News_Sentiment_Analysis
Viewer • Updated • 5.2k • 37
How to use MAPAi/InflaBERT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="MAPAi/InflaBERT") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("MAPAi/InflaBERT")
model = AutoModelForSequenceClassification.from_pretrained("MAPAi/InflaBERT")A BERT-based LLM fine-tuned (from https://huggingface.co/mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis) to predict inflation-related sentiment in news.
Model trained on the MAPAi/inflation_news dataset: https://huggingface.co/datasets/MAPAi/inflation_news