fix graph-based parser training script