'Creates a lookup table.
Args:
charset: a dictionary with id-to-character mapping.'

def __init__(self, charset, default_character='?'):

    mapping_strings = tf.constant(_dict_to_array(charset, default_character))
    self.table = tf.contrib.lookup.index_to_string_table_from_tensor(mapping=mapping_strings, default_value=default_character)
