(self, charset, default_character='?')
Creates a lookup table.

    Args:
      charset: a dictionary with id-to-character mapping.
Creates a lookup table.
Creates a lookup table .
def __init__(self, charset, default_character='?'):
    """Creates a lookup table.

    Args:
      charset: a dictionary with id-to-character mapping.
    """
    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)
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 )