DeepPavlov is an open-source NLP framework for dialogue systems and chatbots. Version 1.0 is built on PyTorch and transformers, emphasizing a modular and configuration-driven development approach, and is suitable for practitioners with limited NLP/machine learning experience.
Main capabilities: provides a variety of pre-trained NLP models, each defined by an independent configuration file, covering tasks such as classification, named entity recognition, and similarity calculation; supports experimentation and evaluation of dialogue systems and provides a benchmark environment; can train, evaluate, and infer models, and can also build models from components in Python for inference; supports serving externally through a REST API server, and can integrate with third-party applications such as Amazon Alexa and Microsoft Bot Framework.
Usage: supports Linux, Windows 10+ (via WSL/WSL2), and macOS (Big Sur+), with Python 3.6 to 3.10. During installation, first create and activate a virtual environment, then run pip install deeppavlov. Models can be used through the command-line interface (CLI) or Python. Common CLI parameters include -d to download pre-trained model files and data such as word vectors, and -i to install model dependencies; <action> can also be used to execute operations such as install, download, train, evaluate, interact, riseapi, and predict, and predict can read from stdin or specify a file via -f <file_path>. In the Python approach, install=True installs dependencies, download=True downloads data, and config_path can be a model name, a configuration file path, or a deeppavlov.configs attribute. Training on your own data requires modifying the dataset reading path in the training configuration; for the data format, see the documentation for the corresponding model.
Limitations: different models require approximately 4 to 16 GB RAM; dependencies are installed from PyPI by default, and the PyPI version of PyTorch may not support the device CUDA capability. Running on GPU requires CUDA to be compatible with the GPU used and the PyTorch version required by the model, and it is recommended to use a GPU with Pascal or newer architecture and more than 4 GB of VRAM. The project uses the Apache 2.0 license.