class_docstr: Construct a MGP-STR char tokenizer.
  
  This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main methods. Users should refer to
  this superclass for more information regarding those methods.
  
  Args:
      vocab_file (`str`):
          Path to the vocabulary file.
      unk_token (`str`, *optional*, defaults to `"[GO]"`):
          The unknown token. A token that is not in the vocabulary cannot be converted to an ID and is set to be this
          token instead.
      bos_token (`str`, *optional*, defaults to `"[GO]"`):
          The beginning of sequence token.
      eos_token (`str`, *optional*, defaults to `"[s]"`):
          The end of sequence token.
      pad_token (`str` or `tokenizers.AddedToken`, *optional*, defaults to `"[GO]"`):
          A special token used to make arrays of tokens the same size for batching purpose. Will then be ignored by
          attention mechanisms or loss computation.
class_docstr_tok: ["Construct","a","MGP-STR","char","tokenizer",".","This","tokenizer","inherits","from","[","`","PreTrainedTokenizer","`","]","which","contains","most","of","the","main","methods",".","Users","should","refer","to","this","superclass","for","more","information","regarding","those","methods",".","Args",":","vocab_file","(","`","str","`",")",":","Path","to","the","vocabulary","file",".","unk_token","(","`","str","`",",","*","optional","*",",","defaults","to","`","``","[","GO","]","''","`",")",":","The","unknown","token",".","A","token","that","is","not","in","the","vocabulary","can","not","be","converted","to","an","ID","and","is","set","to","be","this","token","instead",".","bos_token","(","`","str","`",",","*","optional","*",",","defaults","to","`","``","[","GO","]","''","`",")",":","The","beginning","of","sequence","token",".","eos_token","(","`","str","`",",","*","optional","*",",","defaults","to","`","``","[","s","]","''","`",")",":","The","end","of","sequence","token",".","pad_token","(","`","str","`","or","`","tokenizers.AddedToken","`",",","*","optional","*",",","defaults","to","`","``","[","GO","]","''","`",")",":","A","special","token","used","to","make","arrays","of","tokens","the","same","size","for","batching","purpose",".","Will","then","be","ignored","by","attention","mechanisms","or","loss","computation","."]
docstr: Converts an index (integer) in a token (str) using the vocab.
docstr_tok: ["Converts","an","index","(","integer",")","in","a","token","(","str",")","using","the","vocab","."]
code: def _convert_id_to_token(self, index):
      """Converts an index (integer) in a token (str) using the vocab."""
      return self.decoder.get(index)
  
file_path: transformers/src/transformers/models/mgp_str/tokenization_mgp_str.py
imports: import json
  import os
  from typing import Optional, Tuple
  from ...tokenization_utils import PreTrainedTokenizer
  from ...utils import logging
label_desc: Use image node_id 6 for calling the MgpstrTokenizer obj's underlying member method code with example usage: obj._convert_id_to_token(index) and returns: self