asyml / forte

Forte is a flexible and powerful ML workflow builder. This is part of the CASL project: http://casl-project.ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhance resource loading mechanisms

hunterhector opened this issue · comments

Describe the bug
The current implementation of loading resources makes assumptions that everything is stored in file system like here.

This won't be necessarily true in different scenarios, including zip data or editable installation. Python's resource features are better candidates to handle such problems.

Suggested Fix
Handle the resources using the importlib library and treat data as Path. Do not assume a actual file system.