class_docstr: An implementation of `<https://arxiv.org/abs/1804.07998>`_ adapted from
  `<https://github.com/nesl/nlp_adversarial_examples>`_.
docstr: Retrieves the probability of words.
  
  Args:
      prefix_words
      list_words
code: def get_words_probs(self, prefix, list_words):
      """Retrieves the probability of words.
  
      Args:
          prefix_words
          list_words
      """
      uncached_words = []
      for word in list_words:
          if (prefix, word) not in self.lm_cache:
              if word not in uncached_words:
                  uncached_words.append(word)
      probs = self.get_words_probs_uncached(prefix, uncached_words)
      for word, prob in zip(uncached_words, probs):
          self.lm_cache[prefix, word] = prob
      return [self.lm_cache[prefix, word] for word in list_words]
  
file_path: TextAttack/textattack/constraints/grammaticality/language_models/google_language_model/alzantot_goog_lm.py
imports: import os
  import lru
  import numpy
  from textattack.shared import utils
  from .None import lm_data_utils, lm_utils
label_desc: Use image node_id 4 for calling the GoogLMHelper obj's underlying member method code with example usage: obj.get_words_probs(prefix, list_words) and returns: unknown