deepr.vocab.size

deepr.vocab.size(path)[source]

Return vocabulary size from mapping file.

Parameters:

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

Return type:

int