class_docstr: Basic tokenizer that tokenizes the input via white spaces.
class_docstr_tok: ["Basic","tokenizer","that","tokenizes","the","input","via","white","spaces","."]
docstr: Set the vocabulary of the tokenizer
  
  Parameters
  ----------
  vocab
docstr_tok: ["Set","the","vocabulary","of","the","tokenizer","Parameters","--","--","--","--","--","vocab"]
code: def set_vocab(self, vocab: Vocab):
      """Set the vocabulary of the tokenizer
  
      Parameters
      ----------
      vocab
      """
      self._vocab = vocab
  
file_path: gluon-nlp/src/gluonnlp/data/tokenizers/whitespace.py
imports: from typing import Optional
  from .base import TOKENIZER_REGISTRY, BaseTokenizerWithVocab, TokenizerEncodeWithoutVocabError, TokenizerDecodeWithoutVocabError, TokenTypeNotSupportedError, rebuild_offset_from_tokens, is_tokens_from_multiple_sentences, get_token_type
  from ..vocab import Vocab
label_desc: Use image node_id 6 for calling the WhitespaceTokenizer obj's underlying member method code with example usage: obj.set_vocab(vocab) without return types