Getting started

  1. Install Python 3.10+ and clone/download the repo containing SBS.py.
  2. Install dependencies: pip install -r requirements.txt
  3. Get an OpenAI API key: create a key in your account and set it as an env var.
  4. Run:
    python SBS.py --input my_text.txt --src-lang en --tgt-lang es --max-pairs 30 --model gpt-4o-mini --api-key YOUR_KEY

Optional flags: --no-translate, --no-align, --workers, and direction helpers (e.g., --input-es).