class_docstr: Allow to use the Torch Agent with the wordpiece dictionary of Hugging Face.
class_docstr_tok: ["Allow","to","use","the","Torch","Agent","with","the","wordpiece","dictionary","of","Hugging","Face","."]
code: def txt2vec(self, text, vec_type=list):
      tokens = self.tokenizer.tokenize(text)
      tokens_id = self.tokenizer.convert_tokens_to_ids(tokens)
      return tokens_id
  
file_path: ParlAI/parlai/agents/bert_ranker/bert_dictionary.py
imports: from parlai.core.dict import DictionaryAgent
  from parlai.utils.io import PathManager
  from parlai.utils.misc import warn_once
  from parlai.zoo.bert.build import download
  import os
  from .helpers import VOCAB_PATH
label_desc: Use image node_id 3 for calling the BertDictionaryAgent obj's underlying member method code with example usage: obj.txt2vec(text, vec_type) and returns: tokens_id