def _check_data_exists(ldframe, names):
    """Assert that any required annotator has been run.

    Useful to call at the start of an aggregator to avoid confusing error
    message later in the call.
    """
    for name in names:
        if name not in ldframe.keys():
            raise KeyError("Requires annotator '" + name +
                "', which was not found")
