title: python gensim: AttributeError: 'list' object has no attribute
body: <p>I have a small python pipeline. One class cleans and lemmatizes the data.
  It returns a List of Lists of Strings (i.e., <code>List[List[str]]</code>). I then pass the list on to another class which passes the data to gensim dictionary</p>
  
  <p>The following code, however, throws this exception:</p>
  
  <pre><code>dictionary = corpora.Dictionary(self.bowlist)
  AttributeError: 'list' object has no attribute 'bowlist'
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>from typing import List
  import re
  from gensim import corpora
  
  class ListOfListsToGensimCorpora:
      def __init__(self, bow_list: List[List[str]]):
          self.bowlist = bow_list
  
      def perform(self):
          dictionary = corpora.Dictionary(self.bowlist)
          print(dictionary)
  </code></pre>
  
  <p>I am new to Python but I have checked through debug and other methods, bowlist is a List[List[str]].</p>