'Initialize and read from a file, if provided.'

def __init__(self, filename=None):

    self._alphabet = set()
    if (filename is not None):
        self._load_from_file(filename)
    super(SubwordTextEncoder, self).__init__(num_reserved_ids=None)
