Currently, loading.py imports all loaders (currently only FileCorpus) and adds them to the dictionary loaders. It would make more sense to have the loaders / corpus classes register themselves, e.g. through loaders['FileCorpus'] = FileCorpus.init.
Maybe this could be done with a decorator? One option would be to just register <class>.init under the class name automatically.
Currently,
loading.pyimports all loaders (currently onlyFileCorpus) and adds them to the dictionaryloaders. It would make more sense to have the loaders / corpus classes register themselves, e.g. throughloaders['FileCorpus'] = FileCorpus.init.Maybe this could be done with a decorator? One option would be to just register
<class>.initunder the class name automatically.