def iterate_analogy_datasets(args):
    """Generator over all analogy evaluation datasets.

    Iterates over dataset names, keyword arguments for their creation and the
    created dataset.

    """
    for dataset_name in args.analogy_datasets:
        parameters = nlp.data.list_datasets(dataset_name)
        for key_values in itertools.product(*parameters.values()):
            kwargs = dict(zip(parameters.keys(), key_values))
            yield dataset_name, kwargs, nlp.data.create(dataset_name, **kwargs)
Generator over all analogy evaluation datasets.

    Iterates over dataset names, keyword arguments for their creation and the
    created dataset.