title: FreqDist with NLTK
body: <p><strong>NLTK</strong> in python has a function <a href="http://www.nltk.org/api/nltk.html#nltk.probability.FreqDist" rel="noreferrer">FreqDist</a> which gives you the frequency of words within a text. I am trying to pass my text as an argument but the result is of the form: </p>
  
  <p><code>[' ', 'e', 'a', 'o', 'n', 'i', 't', 'r', 's', 'l', 'd', 'h', 'c', 'y', 'b', 'u', 'g', '\n', 'm', 'p', 'w', 'f', ',', 'v', '.', "'", 'k', 'B', '"', 'M', 'H', '9', 'C', '-', 'N', 'S', '1', 'A', 'G', 'P', 'T', 'W', '[', ']', '(', ')', '0', '7', 'E', 'J', 'O', 'R', 'j', 'x']</code> </p>
  
  <p>whereas in the example in the <strong>NLTK</strong> website the result was whole words not just letters. Im doing it this way:</p>
  
  <pre><code>file_y = open(fileurl)
  p = file_y.read()
  fdist = FreqDist(p)
  vocab = fdist.keys()
  vocab[:100]
  </code></pre>
  
  <p>DO you know what I have wrong pls? Thanks!</p>