code: def __init__(
      self, model_path, bpe_dropout=0.0, legacy=False, r2l=False
  ):
      model_path = Path(model_path).expanduser()
      self.tokenizer = yttm.BPE(model=str(model_path))
      self.vocab_size = len(self.tokenizer.vocab())
      self.special_tokens = self.tokens_to_ids(
          ["<PAD>", "<UNK>", "<BOS>", "<EOS>"]
      )
      self.bpe_dropout = bpe_dropout
      self.legacy = legacy
      self.r2l = r2l
  
file_path: NeMo/nemo/collections/common/tokenizers/youtokentome_tokenizer.py
imports: from pathlib import Path
  import youtokentome
  from nemo.collections.common.tokenizers import TokenizerSpec
label_desc: Use image node_id 1 to create a new YouTokenToMeTokenizer object from inherited base classes: TokenizerSpec with example: obj = YouTokenToMeTokenizer(model_path, bpe_dropout, legacy, r2l)