#!/bin/bash
set -euo pipefail

git config core.hooksPath ./hooks

# BERTopic
cd bertopic
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python -m spacy download en_core_web_sm

deactivate
cd ../

# RAFT
cd raft
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

deactivate
cd ../

./convert_jupytext.sh nb
