deepr.vocab.write

deepr.vocab.write(path, vocab)[source]

Write vocabulary to file.

Parameters:
  • path (str) – Path to .txt file with one item per line

  • vocab (Iterable[str]) – Iterable of lexemes (strings) Lexemes should not have newline characters.