def get_abbrev(frame, lower_case=True):
    """
    Args:
        frame: A Frame from a FrameNet object
        lower_case: boolean value. If true, it converts the frame abbreviation to lower case

    Returns:
         A dictionary mapping abbreviation to Frame Element name

    """
    out = dict()
    for fe in frame.coreFEs + frame.peripheralFEs:
        if len(fe.abbrev) > 0:
            if lower_case:
                out[fe.abbrev.lower()] = fe.name
            else:
                out[fe.abbrev] = fe.name
    return out