DeepPavlov provides some tools to facilitate its usage (e.g. dialog logging, settings management). This document is aimed to guide you through them.
1. Settings files access and management¶
Most of DeepPavlov settings are located in settings files, which in turn are located in a settings folder. Default settings folder location is
You can override a settings directory path by setting the
DP_SETTINGS_PATH environment variable. Missing files will be added automatically when running any deeppavlov script.
You can get current full path to settings directory with
python -m deeppavlov.settings.
To reset settings in the current settings directory one can use
python -m deeppavlov.settings -d.
2. Dialog logging¶
DeepPavlov supports logging of dialogs carried by Agent or
riseapi instances. You can manage dialog logging by editing
dialog_logger_config.json settings file in a settings directory.
Following dialog logging settings are available:
- enabled (default:
false): turns on/off dialog logging for DeepPavlov instance;
- log_path (default:
~/.deeppavlov/dialog_logs): sets directory where dialog logs are stored;
- agent_name (default:
dp_agent): sets subdirectory name for storing dialog logs;
- logfile_max_size_kb (default:
10240): sets logfile maximum size in kilobytes. If exceeded, new log file is created;
- ensure_ascii (default:
true, converts all non-ASCII symbols in logged content to Unicode code points.
3. Environment variables¶
- DP_SETTINGS_PATH — custom path to a directory that contains settings files. It’s automatically populated with missing files when running any deeppavlov scripts.
- DP_SKIP_NLTK_DOWNLOAD set to
TRUEto prevent automatic downloading of nltk packages (