title: Python concordance command in NLTK
body: <p>I have a question regarding Python concordance command in NLTK. First, I came through an easy example: </p>
  
  <pre><code>from nltk.book import *
  
  text1.concordance("monstrous")
  </code></pre>
  
  <p>which worked just fine. Now, I have my own .txt file and I would like to perform the same command. I have a list called "textList" and want to find the word "CNA" so I put command</p>
  
  <pre><code>textList.concordance('CNA') 
  </code></pre>
  
  <p>Yet, I got the error </p>
  
  <pre><code>AttributeError: 'list' object has no attribute 'concordance'. 
  </code></pre>
  
  <p>In the example, is the text1 NOT a list? I wonder what is going on here.    </p>