def cand_to_entity(c):
    """Convert a single candidate to an entity."""
    part = c[0].context.get_span()
    doc = c[0].context.sentence.document.name.upper()
    val = c[1].context.get_span()
    return (doc, part, val)