This repository contains teaching materials β including slides, code, and datasets β for learning how to build text-based indicators and apply them in forecasting and nowcasting tasks. Through practical, hands-on examples, it covers zero- and few-shot learning for text classification, event detection with limited labels, and mixed-frequency data techniques for time series modeling.
BSE-FORECASTNLP/
βββ session1/
βββ session2/
βββ session3/
βββ .gitignore
βββ README.md
βββ requirements.txt
- Session 1: Zero- and Few-Shot Learning for Text Classification
- Session 2: Nowcasting Political Events with Limited Labeled Data
- Session 3: Mixed Data Sampling Approaches for Time Series Nowcasting and Forecasting
-
Ensure Python 3.11 is installed:
Before proceeding, verify that Python 3.11 is installed:
python3.11 --version
If not, download and install it from the official Python website.
-
Clone the repository:
git clone https://github.com/RenatoVassallo/BSE-ForecastNLP.git cd BSE-ForecastNLP -
Create a virtual environment with Python 3.11:
python3.11 -m venv .venv source .venv/bin/activate # On Windows: .\.venv\Scripts\activate
-
Install the required libraries using the latest requirements.txt:
Ensure that you only use the
requirements.txtfile from the GitHub repository. Avoid using any previous versions.pip install -r requirements.txt
-
You are ready to go!
Navigate to the
session1folder and try running any notebook.
Feel free to open issues or reach out if you have any questions. π