Support saving the vocabulary to a text file.