def build_vocab(dataset):
counter = nlp.data.count_tokens([w for e in dataset for s in e[:<NUM_LIT:2>] for w in s],<EOL>to_lower=True)<EOL>vocab = nlp.Vocab(counter)<EOL>return vocab<EOL>
Build vocab given a dataset.