Central Bank Tone

PythonNLPLLMsscikit-learnSentence EmbeddingsONNX Runtime WebDuckDBpolarsFastAPINext.jsTypeScriptTailwind CSSRechartspytest

An NLP and machine learning pipeline over 30 years of BIS central bank speeches. An LLM labeled 8,001 policy sentences, which were distilled into a local embedding classifier that scored all 671,603 policy sentences on a laptop CPU at no cost. Tone was then tested against every rate decision of 21 central banks, and the results are published on a serverless Next.js site that scores any pasted speech in the visitor's browser.

Central Bank Tone screenshot

Highlights

  • Ingested 20,744 speeches from 79 central banks (1996 to 2026, 382M characters) plus five live RSS feeds
  • LLM labeled 8,001 sentences once; a bge-small embedding + logistic regression model scored 671,603 sentences for free
  • Scorer chosen by 5-fold grouped cross-validation over a TF-IDF baseline (macro F1 0.653 vs 0.627)
  • Validated against human labels: LLM 65.3% accuracy; two model families agreed on 88.7% of sentences (kappa 0.82)
  • Tone tracks the next rate move at 19 of 21 central banks (sign test p = 0.0002)
  • Time-split gradient boosting with a 100-run placebo test showed tone adds no predictive power (p = 0.94)
Central Bank Tone – NLP / Full-Stack | Mayur Bijarniya