for k, v in self._word_map.items():
self._add_translation(k, v)
for w in self._keep:
self._add_translation(w, w)
// Prepare list of candidate translations.
self._unused_words = list(
set(filter(TokenTranslator._WORD_RE.match, word_list)) -
After Change
// Init from args.
for k, v in self._word_map.items():
self._translations[k] = v
for w in self._keep:
self._translations[w] = w
// Prepare list of candidate translations.