title: Creating custom corpus in NLTK using CSV file
body: <p>Hey guys I'm presently creating custom corpus for text classification in NLTK Python using the following </p>
  
  <pre><code>corpus_create = CategorizedTaggedCorpusReader('/home/classification', '(training|test).*',cat_file='cat.txt')
  
  len(corpus_Create.categories())
  </code></pre>
  
  <p>Then we utilize a high information words function and a training_test_feat function to return train_feats and test_feats.</p>
  
  <p>Currently we create two folders called Training and Test in which the classified data is put with a cat file describing the folder/filename  with POS,NEG,NEU</p>
  
  <pre><code>Training/File10 POS
  Test/File2 NEG 
  Training/File445 NEU 
  ...........
  </code></pre>
  
  <p>Now if we have a CSV file with Column 1 having text and COlumn2 having classificiation for instance </p>
  
  <pre><code>   Text      Classification 
     Good           POS 
     This is nice   POS 
     Thats  bad     NEG 
     This is a cat  NEU
  </code></pre>
  
  <p>How can we write a function to directly create a corpus from a CSV file?</p>
  
  <p>Thanks a lot </p>