Skip to content

Instantly share code, notes, and snippets.

@gaphex
Created May 9, 2019 15:58
Show Gist options
  • Select an option

  • Save gaphex/2b7312f5537b5cf538119d0a2c348eab to your computer and use it in GitHub Desktop.

Select an option

Save gaphex/2b7312f5537b5cf538119d0a2c348eab to your computer and use it in GitHub Desktop.
VOC_FNAME = "vocab.txt" #@param {type:"string"}
with open(VOC_FNAME, "w") as fo:
for token in bert_vocab:
fo.write(token+"\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment