title: Python NLTK Make corpus from zip files
body: <p>I'm trying to create my own corpus in NLTK from ca. 200k text files each stored in it's own zip folder. It looks like the following:</p>
  
  <ul>
  <li>Parent_dir
  
  <ul>
  <li>text1.zip
  
  <ul>
  <li>text1.txt</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>I'm using the following code and try to access all the text files from the parent directory:</p>
  
  <blockquote>
  <pre><code>from nltk.corpus.reader.plaintext import PlaintextCorpusReader
  corpus_path="parent_dir"
  corpus=PlaintextCorpusReader(corpus_path,".*")
  file_ids=corpus.fileids() 
  print(file_ids)
  </code></pre>
  </blockquote>
  
  <p>But Python just returns an empty list because it probably can't access the text files due to the zipping. Is there an easy way to fix this? Unfortunately, I can't unzip the files because of the size of the files.</p>