There is a problem in the next code, the method apply_and_parse
is currently deprecated
new_examples = example_gen_chain.apply_and_parse(
[{"doc": t} for t in data[:5]]
)
It can be resolved just by erasing the method and get the question and answers like the next code
new_examples = example_gen_chain(
[{"doc": t} for t in data[:5]]
)
new_examples["text"]