vocabSize property

int get vocabSize

The size of the vocabulary (including padding and unknown tokens).

Implementation

int get vocabSize => _charToIndex.length + 2;