-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
107 changed files
with
6,012 additions
and
1,825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Bug report | ||
about: Report on a bug you encountered | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Want to contribute to DeepPavlov? Please read the [contributing guideline](http://docs.deeppavlov.ai/en/master/devguides/contribution_guide.html) first. | ||
|
||
Please enter all the information below, otherwise your issue may be closed without a warning. | ||
|
||
|
||
**DeepPavlov version** (you can look it up by running `pip show deeppavlov`): | ||
|
||
**Python version**: | ||
|
||
**Operating system** (ubuntu linux, windows, ...): | ||
|
||
**Issue**: | ||
|
||
|
||
**Content or a name of a configuration file**: | ||
``` | ||
``` | ||
|
||
|
||
**Command that led to error**: | ||
``` | ||
``` | ||
|
||
**Error (including full traceback)**: | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://forum.deeppavlov.ai/ | ||
about: If you have a different question, please ask it in the forum https://forum.deeppavlov.ai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest a feature to improve the DeepPavlov library | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Want to contribute to DeepPavlov? Please read the [contributing guideline](http://docs.deeppavlov.ai/en/master/devguides/contribution_guide.html) first. | ||
|
||
|
||
**What problem are we trying to solve?**: | ||
``` | ||
``` | ||
|
||
**How can we solve it?**: | ||
``` | ||
``` | ||
|
||
**Are there other issues that block this solution?**: | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
__version__ = '0.10.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'] | ||
__license__ = 'Apache License, Version 2.0' | ||
__email__ = 'info@deeppavlov.ai' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"dataset_reader": { | ||
"class_name": "basic_classification_reader", | ||
"x": "Question", | ||
"y": "Class", | ||
"data_path": "{DOWNLOADS_PATH}/query_prediction" | ||
}, | ||
"dataset_iterator": { | ||
"class_name": "basic_classification_iterator", | ||
"seed": 42 | ||
}, | ||
"chainer": { | ||
"in": ["x"], | ||
"in_y": ["y"], | ||
"pipe": [ | ||
{ | ||
"class_name": "bert_preprocessor", | ||
"vocab_file": "{DOWNLOADS_PATH}/bert_models/cased_L-12_H-768_A-12/vocab.txt", | ||
"do_lower_case": false, | ||
"max_seq_length": 64, | ||
"in": ["x"], | ||
"out": ["bert_features"] | ||
}, | ||
{ | ||
"id": "classes_vocab", | ||
"class_name": "simple_vocab", | ||
"fit_on": ["y"], | ||
"save_path": "{MODEL_PATH}/classes.dict", | ||
"load_path": "{MODEL_PATH}/classes.dict", | ||
"in": "y", | ||
"out": "y_ids" | ||
}, | ||
{ | ||
"in": "y_ids", | ||
"out": "y_onehot", | ||
"class_name": "one_hotter", | ||
"depth": "#classes_vocab.len", | ||
"single_vector": true | ||
}, | ||
{ | ||
"class_name": "bert_classifier", | ||
"n_classes": "#classes_vocab.len", | ||
"return_probas": true, | ||
"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": "{MODEL_PATH}/model", | ||
"load_path": "{MODEL_PATH}/model", | ||
"keep_prob": 0.5, | ||
"learning_rate": 1e-05, | ||
"learning_rate_drop_patience": 5, | ||
"learning_rate_drop_div": 2.0, | ||
"in": ["bert_features"], | ||
"in_y": ["y_onehot"], | ||
"out": ["y_pred_probas"] | ||
}, | ||
{ | ||
"in": "y_pred_probas", | ||
"out": "y_pred_ids", | ||
"class_name": "proba2labels", | ||
"max_proba": true | ||
}, | ||
{ | ||
"in": "y_pred_ids", | ||
"out": "y_pred_labels", | ||
"ref": "classes_vocab" | ||
} | ||
], | ||
"out": ["y_pred_labels"] | ||
}, | ||
"train": { | ||
"epochs": 100, | ||
"batch_size": 64, | ||
"metrics": [ | ||
"sets_accuracy", | ||
"f1_macro", | ||
{ | ||
"name": "roc_auc", | ||
"inputs": ["y_onehot", "y_pred_probas"] | ||
} | ||
], | ||
"validation_patience": 5, | ||
"val_every_n_epochs": 1, | ||
"log_every_n_epochs": 1, | ||
"show_examples": false, | ||
"evaluation_targets": ["train", "valid", "test"], | ||
"class_name": "nn_trainer", | ||
"tensorboard_log_dir": "{MODEL_PATH}/" | ||
}, | ||
"metadata": { | ||
"variables": { | ||
"ROOT_PATH": "~/.deeppavlov", | ||
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads", | ||
"MODELS_PATH": "{ROOT_PATH}/models", | ||
"MODEL_PATH": "{MODELS_PATH}/classifiers/query_prediction" | ||
}, | ||
"requirements": [ | ||
"{DEEPPAVLOV_PATH}/requirements/tf.txt", | ||
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt" | ||
], | ||
"labels": { | ||
"telegram_utils": "IntentModel", | ||
"server_utils": "KerasIntentModel" | ||
}, | ||
"download": [ | ||
{ | ||
"url": "http://files.deeppavlov.ai/kbqa/datasets/query_prediction.tar.gz", | ||
"subdir": "{DOWNLOADS_PATH}/query_prediction" | ||
}, | ||
{ | ||
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/cased_L-12_H-768_A-12.zip", | ||
"subdir": "{DOWNLOADS_PATH}/bert_models" | ||
}, | ||
{ | ||
"url": "http://files.deeppavlov.ai/kbqa/models/query_prediction.tar.gz", | ||
"subdir": "{MODELS_PATH}/classifiers/query_prediction" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"dataset_reader": { | ||
"class_name": "paraphraser_reader", | ||
"data_path": "{DOWNLOADS_PATH}/rel_ranking_bert", | ||
"do_lower_case": false | ||
}, | ||
"dataset_iterator": { | ||
"class_name": "siamese_iterator", | ||
"seed": 243, | ||
"len_valid": 500 | ||
}, | ||
"chainer": { | ||
"in": ["text_a", "text_b"], | ||
"in_y": ["y"], | ||
"pipe": [ | ||
{ | ||
"class_name": "bert_preprocessor", | ||
"vocab_file": "{DOWNLOADS_PATH}/bert_models/cased_L-12_H-768_A-12/vocab.txt", | ||
"do_lower_case": false, | ||
"max_seq_length": 64, | ||
"in": ["text_a", "text_b"], | ||
"out": ["bert_features"] | ||
}, | ||
{ | ||
"class_name": "bert_classifier", | ||
"n_classes": 2, | ||
"return_probas": true, | ||
"one_hot_labels": false, | ||
"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": "{MODEL_PATH}/model", | ||
"load_path": "{MODEL_PATH}/model", | ||
"keep_prob": 0.5, | ||
"learning_rate": 2e-05, | ||
"learning_rate_drop_patience": 2, | ||
"learning_rate_drop_div": 2.0, | ||
"in": ["bert_features"], | ||
"in_y": ["y"], | ||
"out": ["predictions"] | ||
} | ||
], | ||
"out": ["predictions"] | ||
}, | ||
"train": { | ||
"batch_size": 32, | ||
"pytest_max_batches": 2, | ||
"metrics": ["f1", "acc"], | ||
"validation_patience": 10, | ||
"val_every_n_batches": 100, | ||
"log_every_n_batches": 100, | ||
"evaluation_targets": ["train", "valid", "test"], | ||
"tensorboard_log_dir": "{MODEL_PATH}/" | ||
}, | ||
"metadata": { | ||
"variables": { | ||
"ROOT_PATH": "~/.deeppavlov", | ||
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads", | ||
"MODELS_PATH": "{ROOT_PATH}/models", | ||
"MODEL_PATH": "{MODELS_PATH}/rel_ranking_bert" | ||
}, | ||
"requirements": [ | ||
"{DEEPPAVLOV_PATH}/requirements/tf.txt", | ||
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt" | ||
], | ||
"download": [ | ||
{ | ||
"url": "http://files.deeppavlov.ai/kbqa/datasets/rel_ranking_bert.tar.gz", | ||
"subdir": "{DOWNLOADS_PATH}/rel_ranking_bert" | ||
}, | ||
{ | ||
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/cased_L-12_H-768_A-12.zip", | ||
"subdir": "{DOWNLOADS_PATH}/bert_models" | ||
}, | ||
{ | ||
"url": "http://files.deeppavlov.ai/kbqa/models/rel_ranking_bert.tar.gz", | ||
"subdir": "{MODELS_PATH}/rel_ranking_bert" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.