def load_vocab_list(vocab_path, add_eos=True):
  """Load the vocab list from path."""
  vocab_list = open(vocab_path).read().split()
  if vocab_list[0] != 'eos' and add_eos:
    vocab_list = ['eos'] + vocab_list
  return vocab_list