__init__.py 499 B

12345678910111213141516171819202122
  1. # Copyright (c) Alibaba, Inc. and its affiliates.
  2. from typing import TYPE_CHECKING
  3. from modelscope.utils.import_utils import LazyImportModule
  4. if TYPE_CHECKING:
  5. from .utils import import_external_nltk_data
  6. else:
  7. _import_structure = {
  8. 'utils': ['import_external_nltk_data'],
  9. }
  10. import sys
  11. sys.modules[__name__] = LazyImportModule(
  12. __name__,
  13. globals()['__file__'],
  14. _import_structure,
  15. module_spec=__spec__,
  16. extra_objects={},
  17. )