transform

old TransE-like models
git clone https://esimon.eu/repos/transform.git
Log | Files | Refs | README

__init__.py (331B)


      1 __all__ = []
      2 
      3 import pkgutil
      4 import inspect
      5 
      6 for loader, name, is_pkg in pkgutil.walk_packages(__path__):
      7     module = loader.find_module(name).load_module(name)
      8 
      9     for name, value in inspect.getmembers(module):
     10         if name.startswith('__'):
     11             continue
     12 
     13         globals()[name] = value
     14         __all__.append(name)