title: Gensim: TypeError: doc2bow expects an array of unicode tokens on input, not a single string
body: <p>I am starting with some python task, I am facing a problem while using gensim. I am trying to load files from my disk and process them (split them and lowercase() them)</p>
  
  <p>The code I have is below:</p>
  
  <pre><code>dictionary_arr=[]
  for file_path in glob.glob(os.path.join(path, '*.txt')):
      with open (file_path, "r") as myfile:
          text=myfile.read()
          for words in text.lower().split():
              dictionary_arr.append(words)
  dictionary = corpora.Dictionary(dictionary_arr)
  </code></pre>
  
  <p>The list (dictionary_arr) contains the list of all words across all the file, I then use gensim corpora.Dictionary to process the list. However I face a error.</p>
  
  <pre><code>TypeError: doc2bow expects an array of unicode tokens on input, not a single string
  </code></pre>
  
  <p>I cant understand whats a problem, A little guidance would be appreciated.</p>