You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/features/models/KBQA.ipynb
+3-3
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,13 @@
22
22
"\n",
23
23
" 4.2. [Predict using CLI](#4.2-Predict-using-CLI)\n",
24
24
"\n",
25
-
" 4.3. [Using entity linking and Wiki parser as standalone services for KBQA](#4.3-Using-entity-linking-and-Wiki-parser-as-standalone-services-for-KBQA)\n",
25
+
" 4.3. [Using entity linking and Wiki parser as standalone services for KBQA](#4.3-Using-entity-linking-and-Wiki-parser-as-standalone-tools-for-KBQA)\n",
26
26
"\n",
27
27
"5. [Customize the model](#5.-Customize-the-model)\n",
28
28
"\n",
29
-
" 5.1. [Train your model from Python](#5.1-Train-your-model-from-Python)\n",
29
+
" 5.1. [Description of config parameters](#5.1-Description-of-config-parameters)\n",
30
30
"\n",
31
-
" 5.2. [Train your model from CLI](#5.2-Train-your-model-from-CLI)\n",
Copy file name to clipboardexpand all lines: docs/features/models/SQuAD.ipynb
+1-1
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@
105
105
"`squad_bert` is the name of the model's *config_file*. [What is a Config File?](http://docs.deeppavlov.ai/en/master/intro/configuration.html) \n",
106
106
"\n",
107
107
"Configuration file defines the model and describes its hyperparameters. To use another model, change the name of the *config_file* here and further.\n",
108
-
"The full list of the models with their config names can be found in the [table](#6.-Models-list).\n",
108
+
"The full list of the models with their config names can be found in the [table](#3.-Models-list).\n",
Copy file name to clipboardexpand all lines: docs/features/models/classification.ipynb
+7-7
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@
162
162
"cell_type": "markdown",
163
163
"metadata": {},
164
164
"source": [
165
-
"## 3.2 Predict using CLI\n",
165
+
"## 4.2 Predict using CLI\n",
166
166
"\n",
167
167
"You can also get predictions in an interactive mode through CLI (Command Line Interface)."
168
168
]
@@ -198,9 +198,9 @@
198
198
"cell_type": "markdown",
199
199
"metadata": {},
200
200
"source": [
201
-
"# 4. Evaluation\n",
201
+
"# 5. Evaluation\n",
202
202
"\n",
203
-
"## 4.1 Evaluate from Python"
203
+
"## 5.1 Evaluate from Python"
204
204
]
205
205
},
206
206
{
@@ -218,7 +218,7 @@
218
218
"cell_type": "markdown",
219
219
"metadata": {},
220
220
"source": [
221
-
"## 4.2 Evaluate from CLI"
221
+
"## 5.2 Evaluate from CLI"
222
222
]
223
223
},
224
224
{
@@ -234,9 +234,9 @@
234
234
"cell_type": "markdown",
235
235
"metadata": {},
236
236
"source": [
237
-
"# 5. Customize the model\n",
237
+
"# 6. Train the model on your data\n",
238
238
"\n",
239
-
"## 5.1 Train your model from Python\n",
239
+
"## 6.1 Train your model from Python\n",
240
240
"\n",
241
241
"### Provide your data path\n",
242
242
"\n",
@@ -346,7 +346,7 @@
346
346
"cell_type": "markdown",
347
347
"metadata": {},
348
348
"source": [
349
-
"## 5.2 Train your model from CLI\n",
349
+
"## 6.2 Train your model from CLI\n",
350
350
"\n",
351
351
"To train the model on your data, create a copy of a config file and change the *data_path* variable in it. After that, train the model using your new *config_file*. You can also change any of the hyperparameters of the model."
Copy file name to clipboardexpand all lines: docs/features/models/relation_extraction.ipynb
+28-2
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@
198
198
"|NUM | Percents, money, quantities |\n",
199
199
"|MISC | Products, including vehicles, weapons, etc. <br> Events, including elections, battles, sporting MISC events, etc. Laws, cases, languages, etc. |\n",
200
200
"\n",
201
-
"**Model Output**: one or several of the [97 relations](#5.1-Relations-used-in-English-model) found between the given entities; relation id in [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page) (e.g. 'P26') and relation name ('spouse').\n",
201
+
"**Model Output**: one or several of the [97 relations](#6.1-Relations-used-in-English-model) found between the given entities; relation id in [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page) (e.g. 'P26') and relation name ('spouse').\n",
202
202
"\n",
203
203
"### Russian"
204
204
]
@@ -244,8 +244,34 @@
244
244
"- list of entities positions (i.e. all start and end positions of both entities' mentions)\n",
245
245
"- list of NER tags of both entities.\n",
246
246
"\n",
247
-
"**Model Output**: one or several of the [30 relations](#5.2-Relations-used-in-Russian-model) found between the given entities; a Russian relation name (e.g. \"участник\") or an English one, if Russian one is unavailable, and, if applicable, its id in [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page) (e.g. 'P710').\n",
247
+
"**Model Output**: one or several of the [30 relations](#6.2-Relations-used-in-Russian-model) found between the given entities; a Russian relation name (e.g. \"участник\") or an English one, if Russian one is unavailable, and, if applicable, its id in [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page) (e.g. 'P710').\n",
248
248
"\n",
249
+
"## 4.2 Predict using CLI\n",
250
+
"\n",
251
+
"You can also get predictions in an interactive mode through CLI."
"`-d` is an optional download key (alternative to `download=True` in Python code). It is used to download the pre-trained model along with embeddings and all other files needed to run the model."
0 commit comments