wikit-ai / olaf

6 stars 1 forks source link

Modify package import for direct method and data container import #110

Closed ba-talibe closed 6 months ago

ba-talibe commented 6 months ago

Modify the `_init_.py` files to import all implemented components and data containers. It should ease the import in scripts.

Currently we import pipeline components and data containers like this:

from data_container.linguistic_realisation_schema import LinguisticRealisation
from pipeline.pipeline_component.concept_relation_extraction.term_based_relation_extraction import TermBasedRelationExtraction

We should ease the import process to import like this:

from data_container import LinguisticRealisation
from pipeline.pipeline_component.concept_relation_extraction import TermBasedRelationExtraction

See : https://calmcode.io/setup/import.html