'Load from a file.'

def _load_from_file(self, filename):

    subtoken_strings = []
    with tf.gfile.Open(filename) as f:
        for line in f:
            subtoken_strings.append(native_to_unicode(line.strip()[1:(-1)]))
    self._init_subtokens_from_list(subtoken_strings)
    self._init_alphabet_from_tokens(subtoken_strings)
