Skip to content

register loaders where they are defined (decorator?) #27

Description

@chfin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions