def id2hyp(id, rev_dictionary):
    """
    Converts an id to its respective hyphen in rev_dictionary.
    :param id: an integer
    :param rev_dictionary: a Python dictionary
    with integer as keys and strings as values.
    :return: a string
    """
    return rev_dictionary[id] if id in rev_dictionary else '<UNK>'