In [1]:
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)

In [2]:
from gensim import corpora
from documents import documents

SELECTION = 'documents.txt'


c:\python36\lib\site-packages\gensim\utils.py:865: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
  warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
2017-08-20 12:57:59,621 : INFO : 'pattern' package not found; tag filters are not available for English

In [3]:
list(documents(SELECTION))


---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-3-7229865212fe> in <module>()
----> 1 list(documents(SELECTION))

E:\lda2\documents.py in <genexpr>(.0)
     32         document_list_path: A file containing one txt document path per line.
     33     '''
---> 34     return (_load(d) for d in _documents(document_list_path))

E:\lda2\documents.py in _load(path)
     17 
     18 def _load(path):
---> 19     with open(path) as file:
     20         content = file.read()
     21         return _prepare_document(content)

FileNotFoundError: [Errno 2] No such file or directory: '.cached_files\\docweb.rz.uni-passau.de2107\\10.1145-1300000-1297942\\p908-gonzalez sanchez.txt'