src/chug/task_pipeline/pipeline_doc_vqa.py [99:122]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            ),
            handler=handler,
        )
    ]

    if cfg.output_tuple:
        # NOTE in this mode we lose '_parse' key and would need to derive from target
        # Unless we add support for parse as the last tuple element?
        if cfg.text_target_feat is not None:
            pipe += [
                wds.to_tuple(
                    cfg.image_input_feat.output_name,
                    cfg.text_input_feat.output_name,
                    cfg.text_target_feat.output_name,
                )
            ]
        else:
            pipe += [
                wds.to_tuple(
                    cfg.image_input_feat.output_name,
                    cfg.text_input_feat.output_name,
                )
            ]
    return pipe
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



