def _get_vocab_symbols(filename):
  """Returns a list of symbols in a vocabularly file."""
  vocab = []
  if not gfile.Exists(filename):
    raise ValueError("File does not exist: {}".format(filename))
  with gfile.GFile(filename) as fp:
    for line in fp:
      vocab.append(line.rstrip("\n"))
  return vocab
Returns a list of symbols in a vocabularly file.
language/xsp/model/embeddings.py