Skip to content

Commit

Permalink
Release 0.7.0 (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoptar committed Nov 28, 2019
2 parents a951492 + aeafdcf commit 2303ab6
Show file tree
Hide file tree
Showing 452 changed files with 6,093 additions and 4,910 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ node('cuda-module') {
sh "rm -rf .[^.] .??* *"
}
stage('Checkout') {
sh "cp -r ${pwd()}@script/* ."
checkout scm
}
stage('Setup') {
env.TFHUB_CACHE_DIR="tfhub_cache"
env.LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64"
sh """
virtualenv --python=python3.7 '.venv-$BUILD_NUMBER'
. '.venv-$BUILD_NUMBER/bin/activate'
Expand Down
37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@ evaluate and infer it:
* via [Command line interface (CLI)](#command-line-interface-cli) and
* via [Python](#python).

#### GPU requirements

To run supported DeepPavlov models on GPU you should have [CUDA](https://developer.nvidia.com/cuda-toolkit) 10.0
installed on your host machine and TensorFlow with GPU support (`tensorflow-gpu`)
installed in your python environment. Current supported TensorFlow version is 1.14.0.
Run

```
pip install tensorflow-gpu==1.14.0
```

before installing model's package requirements to install supported `tensorflow-gpu` version.


Before making choice of an interface, install model's package requirements
(CLI):

Expand Down Expand Up @@ -153,9 +167,9 @@ python -m deeppavlov <action> <config_path> [-d]
* `interact` to interact via CLI,
* `riseapi` to run a REST API server (see
[doc](http://docs.deeppavlov.ai/en/master/integrations/rest_api.html)),
* `interactbot` to run as a Telegram bot (see
* `telegram` to run as a Telegram bot (see
[doc](http://docs.deeppavlov.ai/en/master/integrations/telegram.html)),
* `interactmsbot` to run a Miscrosoft Bot Framework server (see
* `msbot` to run a Miscrosoft Bot Framework server (see
[doc](http://docs.deeppavlov.ai/en/master/integrations/ms_bot.html)),
* `predict` to get prediction for samples from *stdin* or from
*<file_path>* if `-f <file_path>` is specified.
Expand Down Expand Up @@ -216,6 +230,22 @@ and others in the Integrations section for more info.

## Breaking Changes

**Breaking changes in version 0.7.0**
- in dialog logger config file [dialog_logger_config.json](deeppavlov/utils/settings/dialog_logger_config.json) `agent_name` parameter was renamed to `logger_name`,
the default value was changed
- Agent, Skill, eCommerce Bot and Pattern Matching classes were moved to [deeppavlov.deprecated](deeppavlov/deprecated)
- [AIML Skill](http://docs.deeppavlov.ai/en/0.7.0/features/skills/aiml_skill.html),
[RASA Skill](http://docs.deeppavlov.ai/en/0.7.0/features/skills/rasa_skill.html),
[Yandex Alice](http://docs.deeppavlov.ai/en/0.7.0/integrations/yandex_alice.html),
[Amazon Alexa](http://docs.deeppavlov.ai/en/0.7.0/integrations/amazon_alexa.html),
[Microsoft Bot Framework](http://docs.deeppavlov.ai/en/0.7.0/integrations/ms_bot.html) and
[Telegram integration](http://docs.deeppavlov.ai/en/0.7.0/integrations/telegram.html) interfaces were changed
- `/start` and `/help` Telegram messages were moved from `models_info.json` to [server_config.json](deeppavlov/utils/settings/server_config.json)
- [risesocket](http://docs.deeppavlov.ai/en/0.7.0/integrations/socket_api.html) request and response format was changed
- [riseapi](http://docs.deeppavlov.ai/en/0.7.0/integrations/rest_api.html#advanced-configuration) and
[risesocket](http://docs.deeppavlov.ai/en/0.7.0/integrations/socket_api.html#advanced-configuration) model-specific
properties parametrization was changed

**Breaking changes in version 0.6.0**
- [REST API](http://docs.deeppavlov.ai/en/0.6.0/integrations/rest_api.html):
- all models default endpoints were renamed to `/model`
Expand Down Expand Up @@ -268,7 +298,8 @@ DeepPavlov is Apache 2.0 - licensed.

## The Team

DeepPavlov is built and maintained by [Neural Networks and Deep Learning Lab](https://mipt.ru/english/research/labs/neural-networks-and-deep-learning-lab) at [MIPT](https://mipt.ru/english/) within [iPavlov](http://ipavlov.ai/) project.
DeepPavlov is built and maintained by [Neural Networks and Deep Learning Lab](https://www.facebook.com/deepmipt/)
at [MIPT](https://mipt.ru/english/) within [iPavlov](http://ipavlov.ai/) project.

<p align="center">
<img src="docs/_static/ipavlov_footer.png" width="50%" height="50%"/>
Expand Down
4 changes: 3 additions & 1 deletion deeppavlov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@
from .download import deep_download
from .core.common.chainer import Chainer


# TODO: make better
def train_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> Chainer:
train_evaluate_model_from_config(config, download=download, recursive=recursive)
return build_model(config, load_trained=True)


def evaluate_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> dict:
return train_evaluate_model_from_config(config, to_train=False, download=download, recursive=recursive)

except ImportError:
'Assuming that requirements are not yet installed'

__version__ = '0.6.1'
__version__ = '0.7.0'
__author__ = 'Neural Networks and Deep Learning lab, MIPT'
__description__ = 'An open source library for building end-to-end dialog systems and training chatbots.'
__keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot']
Expand Down
1 change: 1 addition & 0 deletions deeppavlov/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
if __name__ == '__main__':
from .deep import main

main()
Empty file.
Empty file.
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/insults_kaggle.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/insults_data.tar.gz",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/insults_kaggle_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/insults_data.tar.gz",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/insults_kaggle_conv_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/insults_data.tar.gz",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_dstc2.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/embeddings/dstc2_fastText_model.bin",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_dstc2_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/cased_L-12_H-768_A-12.zip",
Expand Down
3 changes: 0 additions & 3 deletions deeppavlov/configs/classifiers/intents_dstc2_big.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/embeddings/wiki.en.bin",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_sample_csv.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/snips_intents/train.csv",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_sample_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/snips_intents/train.json",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_snips.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/embeddings/dstc2_fastText_model.bin",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_snips_big.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/embeddings/wiki.en.bin",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/intents_snips_sklearn.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_snips_sklearn_v11.tar.gz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_snips_sklearn_v12.tar.gz",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/rusentiment_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/multi_cased_L-12_H-768_A-12.zip",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/embeddings/ft_native_300_ru_twitter_nltk_word_tokenize.bin",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/rusentiment_cnn.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/embeddings/ft_native_300_ru_wiki_lenta_nltk_wordpunct_tokenize/ft_native_300_ru_wiki_lenta_nltk_wordpunct_tokenize.bin",
Expand Down
4 changes: 0 additions & 4 deletions deeppavlov/configs/classifiers/rusentiment_convers_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/ru_conversational_cased_L-12_H-768_A-12.tar.gz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/tf-hub.txt"
],
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/rusentiment_v10.tar.gz",
Expand Down

0 comments on commit 2303ab6

Please sign in to comment.