class_docstr: SentencePiece tokenizer for `lang`
class_docstr_tok: ["SentencePiece","tokenizer","for","`","lang","`"]
code: def _get_vocab_sz(self, raw_text_path):
      cnt = Counter()
      with open(raw_text_path, "r") as f:
          for line in f.readlines():
              cnt.update(line.split())
              if len(cnt) // 4 > self.max_vocab_sz:
                  return self.max_vocab_sz
      res = len(cnt) // 4
      while res % 8 != 0:
          res += 1
      return max(res, 29)
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  import html
label_desc: Use image node_id 2 for calling the SentencePieceTokenizer obj's underlying member method code with example usage: obj._get_vocab_sz(raw_text_path) and returns: max, self