Skip to content

Commit

Permalink
Release 0.4.0 (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoptar committed Jun 27, 2019
2 parents 7c22c3e + 6c62946 commit e67b111
Show file tree
Hide file tree
Showing 66 changed files with 1,233 additions and 339 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ DeepPavlov is an open-source conversational AI library built on [TensorFlow](htt
Demo of selected features is available at [demo.ipavlov.ai](https://demo.ipavlov.ai/)


### Breaking changes in version 0.4.0!
- default target variable name for [neural evolution](https://docs.deeppavlov.ai/en/0.4.0/intro/hypersearch.html#parameters-evolution-for-deeppavlov-models)
was changed from `MODELS_PATH` to `MODEL_PATH`.

### Breaking changes in version 0.3.0!
- component option `fit_on_batch` in configuration files was removed and replaced with adaptive usage of the `fit_on` parameter.

Expand Down
2 changes: 1 addition & 1 deletion deeppavlov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def evaluate_model(config: [str, Path, dict], download: bool = False, recursive:
except ImportError:
'Assuming that requirements are not yet installed'

__version__ = '0.3.1'
__version__ = '0.4.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
13 changes: 7 additions & 6 deletions deeppavlov/configs/classifiers/insults_kaggle.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"fit_on": [
"y"
],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
Expand Down Expand Up @@ -71,8 +71,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"n_classes": "#classes_vocab.len",
"kernel_sizes_cnn": [
Expand Down Expand Up @@ -134,7 +134,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/insults_kaggle_v2"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/insults_kaggle_v2"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -155,7 +156,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/insults_kaggle_v2.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions deeppavlov/configs/classifiers/insults_kaggle_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"fit_on": [
"y"
],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
Expand All @@ -54,8 +54,8 @@
"one_hot_labels": true,
"bert_config_file": "{DOWNLOADS_PATH}/bert_models/cased_L-12_H-768_A-12/bert_config.json",
"pretrained_bert": "{DOWNLOADS_PATH}/bert_models/cased_L-12_H-768_A-12/bert_model.ckpt",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"keep_prob": 0.5,
"learning_rate": 1e-05,
"learning_rate_drop_patience": 5,
Expand Down Expand Up @@ -110,13 +110,14 @@
"test"
],
"class_name": "nn_trainer",
"tensorboard_log_dir": "{MODELS_PATH}/"
"tensorboard_log_dir": "{MODEL_PATH}/"
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/insults_kaggle_v3"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/insults_kaggle_v3"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -137,7 +138,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/insults_kaggle_v3.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down
13 changes: 7 additions & 6 deletions deeppavlov/configs/classifiers/intents_dstc2.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"fit_on": [
"y"
],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids",
"special_tokens": ["<UNK>"]
Expand Down Expand Up @@ -62,8 +62,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"classes": "#classes_vocab.keys()",
"n_classes": "#classes_vocab.len",
Expand Down Expand Up @@ -139,7 +139,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_dstc2_v10"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_dstc2_v10"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -156,7 +157,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_dstc2_v10.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions deeppavlov/configs/classifiers/intents_dstc2_bert.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"id": "classes_vocab",
"class_name": "simple_vocab",
"fit_on": ["y"],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids",
"special_tokens": ["<UNK>"]
Expand Down Expand Up @@ -45,8 +45,8 @@
"multilabel": true,
"bert_config_file": "{DOWNLOADS_PATH}/bert_models/cased_L-12_H-768_A-12/bert_config.json",
"pretrained_bert": "{DOWNLOADS_PATH}/bert_models/cased_L-12_H-768_A-12/bert_model.ckpt",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"keep_prob": 0.5,
"learning_rate": 2e-05,
"learning_rate_drop_patience": 3,
Expand Down Expand Up @@ -93,13 +93,14 @@
"log_every_n_batches": 100,
"validate_best": true,
"test_best": true,
"tensorboard_log_dir": "{MODELS_PATH}/logs"
"tensorboard_log_dir": "{MODEL_PATH}/logs"
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_dstc2_bert_v0"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_dstc2_bert_v0"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -120,7 +121,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_dstc2_bert_v0.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}

]
Expand Down
13 changes: 7 additions & 6 deletions deeppavlov/configs/classifiers/intents_dstc2_big.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"fit_on": [
"y"
],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids",
"special_tokens": ["<UNK>"]
Expand Down Expand Up @@ -62,8 +62,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"classes": "#classes_vocab.keys()",
"n_classes": "#classes_vocab.len",
Expand Down Expand Up @@ -138,7 +138,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_dstc2_v11"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_dstc2_v11"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -154,7 +155,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_dstc2_v11.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down
13 changes: 7 additions & 6 deletions deeppavlov/configs/classifiers/intents_sample_csv.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"fit_on": [
"y"
],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
Expand Down Expand Up @@ -78,8 +78,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"n_classes": "#classes_vocab.len",
"kernel_sizes_cnn": [
Expand Down Expand Up @@ -139,7 +139,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_snips_v9"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_snips_v9"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -160,7 +161,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_snips_v9.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down
11 changes: 6 additions & 5 deletions deeppavlov/configs/classifiers/intents_sample_json.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"fit_on": [
"y"
],
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
Expand Down Expand Up @@ -73,8 +73,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"n_classes": "#classes_vocab.len",
"kernel_sizes_cnn": [
Expand Down Expand Up @@ -134,7 +134,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_snips_v9"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_snips_v9"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand Down
13 changes: 7 additions & 6 deletions deeppavlov/configs/classifiers/intents_snips.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"y"
],
"level": "token",
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
Expand Down Expand Up @@ -72,8 +72,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"n_classes": "#classes_vocab.len",
"kernel_sizes_cnn": [
Expand Down Expand Up @@ -133,7 +133,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_snips_v9"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_snips_v9"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -154,7 +155,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_snips_v9.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down
13 changes: 7 additions & 6 deletions deeppavlov/configs/classifiers/intents_snips_big.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"y"
],
"level": "token",
"save_path": "{MODELS_PATH}/classes.dict",
"load_path": "{MODELS_PATH}/classes.dict",
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
Expand Down Expand Up @@ -72,8 +72,8 @@
],
"main": true,
"class_name": "keras_classification_model",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"embedding_size": "#my_embedder.dim",
"n_classes": "#classes_vocab.len",
"kernel_sizes_cnn": [
Expand Down Expand Up @@ -133,7 +133,8 @@
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/classifiers/intents_snips_v10"
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intents_snips_v10"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
Expand All @@ -154,7 +155,7 @@
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/classifiers/intents_snips_v10.tar.gz",
"subdir": "{ROOT_PATH}/models/classifiers"
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
Expand Down

0 comments on commit e67b111

Please sign in to comment.