concepts.benchmark.common.vocab#

Functions

gen_vocab(dataset[, keys, extra_words, cls, ...])

Generate a Vocabulary instance from a dataset.

gen_vocab_from_words(words[, extra_words, cls])

Generate a Vocabulary instance from a list of words.

Classes

Vocab

A simple vocabulary class.