IDEAS home Printed from https://ideas.repec.org/p/ecb/ecbwps/20263283.html

Measuring sentiment news with transformer-based language models

Author

Listed:
  • Borgioli, Stefano
  • Gallo, Giampiero M.
  • Ongari, Chiara
  • Mavillonio, Maria Saveria
  • Giannetti, Caterina

Abstract

Measuring sentiment from financial news is a central task in economics and finance, yet most existing indicators rely on dictionary-based approaches that infer sentiment from word counts and only partially capture context, negation, and semantic structure. This paper proposes a framework for constructing daily news mood indices using transformer-based language models and evaluates whether they better represent sentiment than dictionary-based alternatives. Using 143,755 financial news articles from Factiva, we classify sentiment at the sentence level with FinBERT and aggregate these predictions into article-level and daily sentiment measures through alternative normalization schemes. We compare the resulting indices with benchmark measures based on Shapiro et al., 2022 and Barbaglia et al., 2025. A central contribution is the validation of alternative sentiment measures against human judgments. We conducted an incentivized annotation exercise in which 444 participants evaluated a validation subsample of 588 financial news articles. Consensus ratings from independent human evaluations serve as an external benchmark for assessing the quality of automated sentiment measures. Across correlation, regression, and classification exercises, transformer-based measures show stronger agreement with human judgments than vocabulary-based alternatives and perform substantially better in distinguishing positive, neutral, and negative articles. Overall, the results suggest that incorporating contextual information through transformer-based language models produces sentiment measures that more closely reflect human assessments of financial news. JEL Classification: C55, C81, E32, E37, G14

Suggested Citation

  • Borgioli, Stefano & Gallo, Giampiero M. & Ongari, Chiara & Mavillonio, Maria Saveria & Giannetti, Caterina, 2026. "Measuring sentiment news with transformer-based language models," Working Paper Series 3283, European Central Bank.
  • Handle: RePEc:ecb:ecbwps:20263283
    Note: 339024
    as

    Download full text from publisher

    File URL: https://www.ecb.europa.eu//pub/pdf/scpwps/ecb.wp3283~df0633dfd3.en.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Luca Barbaglia & Sergio Consoli & Sebastiano Manzan, 2023. "Forecasting with Economic News," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 41(3), pages 708-719, July.
    2. Aguilar, Pablo & Ghirelli, Corinna & Pacce, Matías & Urtasun, Alberto, 2021. "Can news help measure economic sentiment? An application in COVID-19 times," Economics Letters, Elsevier, vol. 199(C).
    3. Federico Siano, 2025. "The News in Earnings Announcement Disclosures: Capturing Word Context Using LLM Methods," Management Science, INFORMS, vol. 71(11), pages 9831-9855, November.
    4. Saiz, Lorena & Magro, Manuel Medina, 2025. "What can newspaper articles reveal about the euro area economy?," Working Paper Series 3122, European Central Bank.
    5. Beomseok Seo & Younghwan Lee & Hyungbae Cho, 2024. "Measuring News Sentiment of Korea Using Transformer," Korean Economic Review, Korean Economic Association, vol. 40, pages 149-176.
    6. Andresa Lagerborg & Evi Pappa & Morten O Ravn, 2023. "Sentimental Business Cycles," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 90(3), pages 1358-1393.
    7. Jens Ludwig & Sendhil Mullainathan & Ashesh Rambachan, 2026. "Large Language Models: An Applied Econometric Framework," Annual Review of Economics, Annual Reviews, vol. 18(1), pages 283-316, August.
    8. Li Chen & Shawn Mankad, 2025. "A Structural Topic and Sentiment-Discourse Model for Text Analysis," Management Science, INFORMS, vol. 71(7), pages 5767-5787, July.
    9. Yuke Zhang, 2025. "Interpretable Machine Learning for Macro Alpha: A News Sentiment Case Study," Papers 2505.16136, arXiv.org.
    10. repec:bla:jfinan:v:59:y:2004:i:3:p:1259-1294 is not listed on IDEAS
    11. Luca Barbaglia & Sergio Consoli & Sebastiano Manzan & Luca Tiozzo Pezzoli & Elisa Tosetti, 2025. "Sentiment analysis of economic text: A lexicon‐based approach," Economic Inquiry, Western Economic Association International, vol. 63(1), pages 125-143, January.
    12. Richard Frankel & Jared Jennings & Joshua Lee, 2022. "Disclosure Sentiment: Machine Learning vs. Dictionary Methods," Management Science, INFORMS, vol. 68(7), pages 5514-5532, July.
    13. Mantas Lukauskas & Vaida Pilinkienė & Jurgita Bruneckienė & Alina Stundžienė & Andrius Grybauskas & Tomas Ruzgas, 2022. "Economic Activity Forecasting Based on the Sentiment Analysis of News," Mathematics, MDPI, vol. 10(19), pages 1-22, September.
    14. Luca Barbaglia & Sergio Consoli & Sebastiano Manzan, 2024. "Forecasting GDP in Europe with textual data," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(2), pages 338-355, March.
    15. Shapiro, Adam Hale & Sudhof, Moritz & Wilson, Daniel J., 2022. "Measuring news sentiment," Journal of Econometrics, Elsevier, vol. 228(2), pages 221-243.
    16. Aprigliano, Valentina & Emiliozzi, Simone & Guaitoli, Gabriele & Luciani, Andrea & Marcucci, Juri & Monteforte, Libero, 2023. "The power of text-based indicators in forecasting Italian economic activity," International Journal of Forecasting, Elsevier, vol. 39(2), pages 791-808.
    17. Alan Chester Arcin & Carmelita Esclanda-Lo & Chelsea Anne Ong & Rossvern Reyes, 2025. "Constructing high-frequency and thematic economic sentiment indicators from online news articles: applications in the Philippine context," IFC Bulletins chapters, in: Bank for International Settlements (ed.), Data science in central banking: enhancing the access to and sharing of data, volume 64, Bank for International Settlements.
    18. Julian Ashwin & Eleni Kalamara & Lorena Saiz, 2024. "Nowcasting Euro area GDP with news sentiment: A tale of two crises," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(5), pages 887-905, August.
    19. de Bondt, Gabe J. & Sun, Yiqiao, 2026. "Enhancing GDP nowcasts with ChatGPT: A novel application of PMI news releases," Journal of Policy Modeling, Elsevier, vol. 48(3).
    20. Rambaccussing, Dooruj & Kwiatkowski, Andrzej, 2020. "Forecasting with news sentiment: Evidence with UK newspapers," International Journal of Forecasting, Elsevier, vol. 36(4), pages 1501-1516.
    21. Eleni Kalamara & Arthur Turrell & Chris Redl & George Kapetanios & Sujit Kapadia, 2022. "Making text count: Economic forecasting using newspaper text," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 896-919, August.
    22. Palan, Stefan & Schitter, Christian, 2018. "Prolific.ac—A subject pool for online experiments," Journal of Behavioral and Experimental Finance, Elsevier, vol. 17(C), pages 22-27.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Saiz, Lorena & Magro, Manuel Medina, 2025. "What can newspaper articles reveal about the euro area economy?," Working Paper Series 3122, European Central Bank.
    2. Julian Ashwin & Eleni Kalamara & Lorena Saiz, 2024. "Nowcasting Euro area GDP with news sentiment: A tale of two crises," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(5), pages 887-905, August.
    3. Luca Barbaglia & Sergio Consoli & Sebastiano Manzan, 2024. "Forecasting GDP in Europe with textual data," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(2), pages 338-355, March.
    4. Rocío Clara A. Mora-Quiñones & Antonio José Orozco-Gallo & Dora Alicia Mora-Pérez, 2026. "Sentiment and Uncertainty Indices from economic news in Colombia," Borradores de Economia 1340, Banco de la Republica de Colombia.
    5. Erik Andres-Escayola & Corinna Ghirelli & Luis Molina & Javier J. Pérez & Elena Vidal, 2022. "Using newspapers for textual indicators: which and how many?," Working Papers 2235, Banco de España.
    6. Saiz, Lorena & Ashwin, Julian & Kalamara, Eleni, 2021. "Nowcasting euro area GDP with news sentiment: a tale of two crises," Working Paper Series 2616, European Central Bank.
    7. Elizaveta Volgina, 2025. "Forecasting Inflation Using News Indices," Russian Journal of Money and Finance, Bank of Russia, vol. 84(1), pages 26-59, March.
    8. Slonimczyk, Fabian, 2025. "This Candidate is [MASK]. Prompt-based Sentiment Extraction and Reference Letters," MPRA Paper 126675, University Library of Munich, Germany.
    9. Aprigliano, Valentina & Emiliozzi, Simone & Guaitoli, Gabriele & Luciani, Andrea & Marcucci, Juri & Monteforte, Libero, 2023. "The power of text-based indicators in forecasting Italian economic activity," International Journal of Forecasting, Elsevier, vol. 39(2), pages 791-808.
    10. Adämmer, Philipp & Prüser, Jan & Schüssler, Rainer A., 2025. "Forecasting macroeconomic tail risk in real time: Do textual data add value?," International Journal of Forecasting, Elsevier, vol. 41(1), pages 307-320.
    11. Dorinth van Dijk & Jasper de Winter, 2023. "Nowcasting GDP using tone-adjusted time varying news topics: Evidence from the financial press," Working Papers 766, DNB.
    12. Luca Barbaglia & Sergio Consoli & Sebastiano Manzan & Luca Tiozzo Pezzoli & Elisa Tosetti, 2025. "Sentiment analysis of economic text: A lexicon‐based approach," Economic Inquiry, Western Economic Association International, vol. 63(1), pages 125-143, January.
    13. Bondarenko, Yevheniia & Lewis, Vivien & Rottner, Matthias & Schüler, Yves, 2024. "Geopolitical risk perceptions," Journal of International Economics, Elsevier, vol. 152(C).
    14. Olivier de Bandt & Jean-Charles Bricongne & Julien Denes & Alexandre Dhenin & Annabelle De Gaye & Pierre-Antoine Robert, 2023. "Using the Press to Construct a New Indicator of Inflation Perceptions in France," Working papers 921, Banque de France.
    15. Consolo, Agostino & Foroni, Claudia & Lissona, Claudio & Schroeder, Christofer, 2026. "Forecasting the euro area job vacancy rate with earnings calls data," Working Paper Series 3269, European Central Bank.
    16. Wanbo Lu & Yifu Wang & Xingjian Zhang, 2023. "Which news topics drive economic prosperity in China?," PLOS ONE, Public Library of Science, vol. 18(10), pages 1-23, October.
    17. Dooruj Rambaccussing & Craig Menzies & Andrzej Kwiatkowski, 2022. "Look who’s Talking: Individual Committee members’ impact on inflation expectations," Dundee Discussion Papers in Economics 305, Economic Studies, University of Dundee.
    18. Pijush Kanti Das & Prabir Kumar Das, 2025. "Artificial Intelligence and Inflation Forecasting: A Contemporary Perspective," South Asian Journal of Macroeconomics and Public Finance, , vol. 14(1), pages 133-164, June.
    19. Tim Köhler, 2025. "Do the Sentiments of Forecasters Help Predict Recessions? Evidence from Germany," Journal of Business Cycle Research, Springer;Centre for International Research on Economic Tendency Surveys (CIRET), vol. 21(2), pages 185-212, December.
    20. Seo, Beomseok, 2025. "Econometric forecasting using ubiquitous news text: Text-enhanced factor model," International Journal of Forecasting, Elsevier, vol. 41(3), pages 1055-1072.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C55 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Large Data Sets: Modeling and Analysis
    • C81 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Methodology for Collecting, Estimating, and Organizing Microeconomic Data; Data Access
    • E32 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Business Fluctuations; Cycles
    • E37 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Forecasting and Simulation: Models and Applications
    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ecb:ecbwps:20263283. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Official Publications (email available below). General contact details of provider: https://edirc.repec.org/data/emieude.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.