atnlp.core¶
Core functionality
helpers.py¶
Collection of global framework helper functions
-
atnlp.core.helpers.
dynamic_import
(path)[source]¶ Import and return module from it’s file path
Parameters: path – path to module in file system Returns: module
logger.py¶
Framework logging functionality
-
atnlp.core.logger.
gInitialized
= False¶ is global logger initialized (global variable)
-
atnlp.core.logger.
initialize
(level=None)[source]¶ initialize global logger
Parameters: level (logging.LEVEL (eg. DEBUG, INFO, WARNING...)) – logging output level
-
atnlp.core.logger.
section_break
(title=None)[source]¶ Print section break to logger (at INFO level)
Parameters: title – section title (optional)
setup.py¶
Function to setup the atnlp framework (call it before using the framework).
-
atnlp.core.setup.
setup
(log_level=None, suppress_warnings=None, tf_loglvl=2, batch_mode=False)[source]¶ Global setup for atnlp framework
Parameters: - log_level (logging.LEVEL (eg. DEBUG, INFO, WARNING...)) – logging output level
- suppress_warnings (bool) – list of warnings to suppress
- tf_loglvl (int) – tensorflow log level