def remove_empty_intent_examples(intent_results):
    """Remove those examples without an intent."""
    filtered = []
    for r in intent_results:
        if r.prediction is None:
            r = r._replace(prediction='')
        if r.target != '' and r.target is not None:
            filtered.append(r)
    return filtered
