#!/bin/bash
set -euo pipefail

CONDA_BIN=${CONDA_BIN:-}
if [ -z "$CONDA_BIN" ]; then
  if command -v conda >/dev/null 2>&1; then
    CONDA_BIN=$(command -v conda)
  elif [ -x /opt/miniconda/bin/conda ]; then
    CONDA_BIN=/opt/miniconda/bin/conda
  fi
fi

if [ -n "$CONDA_BIN" ]; then
  eval "$("$CONDA_BIN" shell.bash hook)"
  conda activate focallora4
else
  echo "[Ident_verb_test.sh] Warning: conda not found; running in current environment." >&2
fi

SCRIPT_DIR="$(cd -- "$(dirname "$0")" && pwd)"
export IGNORE_REASONING_MESSAGES="${IGNORE_REASONING_MESSAGES:-1}"
python3 "$SCRIPT_DIR/tokenize_data_mask.py"
