title: TypeError: got multiple values for argument 'dictionary'
body: <p>i read other questioned which are asked about this error earlier.but still i am not getting where i am making a mistake.when i call the function i got this error. i am very new in this forum ,any help in solving my problem will be appreciated.here is my code</p>
  
  <pre><code>def lda_train(self, documents):
          # create dictionary
          dictionary= corpora.Dictionary(documents)
          dictionary.compactify()
          dictionary.save(self.DICTIONARY_FILE)  # store the dictionary, for future reference
          print ("============ Dictionary Generated and Saved ============")
  
          ############# Create Corpus##########################
  
          corpus = [dictionary.doc2bow(text) for text in documents]
          print('Number of unique tokens: %d' % len(dictionary))
          print('Number of documents: %d' % len(corpus))
          return dictionary,corpus
  
  def compute_coherence_values(dictionary,corpus,documents,  limit, start=2, step=3):
          num_topics = 10
          coherence_values = []
          model_list = []
          for num_topics in range(start, limit, step):
              lda_model = gensim.models.ldamodel.LdaModel(corpus=corpus,id2word=dictionary, num_topics=num_topics,  random_state=100, alpha='auto')
              model_list.append(model)
              coherencemodel = CoherenceModel(model=model, texts=texts, dictionary=dictionary, coherence='c_v')
              coherence_values.append(coherencemodel.get_coherence())
          return model_list, coherence_values
  </code></pre>
  
  <p>when i call this function in main by using this code:</p>
  
  <pre><code>if __name__ == '__main__':
      limit=40
      start=2
      step=6
      obj = LDAModel()
      lda_input = get_lda_input_from_corpus_folder('./dataset/TRAIN')
      dictionary,corpus =obj.lda_train(lda_input)
      model_list, coherence_values = obj.compute_coherence_values(dictionary=dictionary,corpus=corpus, texts=lda_input,  start=2, limit=40, step=6)
  </code></pre>
  
  <p>i receive an error message :</p>
  
  <pre><code> model_list, coherence_values=obj.compute_coherence_values(dictionary=dictionary,corpus=corpus, texts=lda_input,  start=2, limit=40, step=6) 
  TypeError: compute_coherence_values() got multiple values for argument 'dictionary'
  </code></pre>