corpus4classify/bbcnews/__init__.py
def extract_data():
   '''Go to the dir holding all the data; index the sub-dir names; pack all files in each sub-dir
   into a list. Finally, put the lists in a dict keyed by the sub-dir names.
   '''
   folders = DATA_LOC.iterdir()
   return {folder.stem: __files2list(folder.iterdir()) for folder in folders}
Go to the dir holding all the data; index the sub-dir names; pack all files in each sub-dir
   into a list. Finally, put the lists in a dict keyed by the sub-dir names.
   
Go to the dir holding all the data; index the sub-dir names; pack all files in each sub-dir
into a list. Finally, put the lists in a dict keyed by the sub-dir names.
Go to the dir holding all the data ; index the sub - dir names ; pack all files in each sub - dir into a list . Finally put the lists in a dict keyed by the sub - dir names .
def extract_data():
   folders = DATA_LOC.iterdir()
   return {folder.stem: __files2list(folder.iterdir()) for folder in folders}
def extract_data ( ) : folders = DATA_LOC . iterdir ( ) return { folder . stem : __files2list ( folder . iterdir ( ) ) for folder in folders }
Go to the dir holding all the data; index the sub-dir names; pack all files in each sub-dir
into a list.
Go to the dir holding all the data ; index the sub - dir names ; pack all files in each sub - dir into a list .
'''Go to the dir holding all the data; index the sub-dir names; pack all files in each sub-dir
   into a list. Finally, put the lists in a dict keyed by the sub-dir names.
   '''