def srl_id_frames(root):
    """Load a NAF file, extract the frames and their corresponding identifiers and add them to a dictionary."""
    framedict = {}

    if root.find('srl') in root:
        for predicate in root.find('srl'):
            ext_ref_el = predicate.find('externalReferences/externalRef')
            uri = ext_ref_el.get('reference')
            frame = uri[35:]
            label = frame[0].upper() + frame[1:]
            target = predicate.find('span/target')
            id = target.get('id')
            framedict[id] = label
    return framedict