code: def get_word_dict(self, sentences, tokenize=True):
      # create vocab of words
      word_dict = {}
      sentences = [
          s.split() if not tokenize else self.tokenize(s)
          for s in sentences
      ]
      for sent in sentences:
          for word in sent:
              if word not in word_dict:
                  word_dict[word] = ""
      word_dict[self.bos] = ""
      word_dict[self.eos] = ""
      return word_dict
  
imports: import time
  import numpy
  import torch
  from torch import nn
  import textattack
label_desc: Use image node_id 5 for calling the InferSentModel obj's underlying member method code with example usage: obj.get_word_dict(sentences, tokenize) and returns: word_dict