    def vocab_size(self):
        """
        Return the size of vocabulary.

        Returns:
            int: The size of vocabulary.
        """

        return len(self.vocab)
Return the size of vocabulary.

Returns:
int: The size of vocabulary.
ptstructure/vqa/pytorchnlp/transformers/bert/tokenizer.py