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
- `name`: A human-readable representation of the intent.
104
-
- `tags`: Used in multilabel scenarios to predict the most probable class listed in a specific tag.
105
-
- `regexp_partial_match` and `regexp_full_match`: Used by the `RegExp` module to predict intents based on provided patterns.
106
-
- `description`: Used by the `DescriptionScorer` to calculate scores based on the similarity between an utterance and intent descriptions.
104
+
- `tags`: Used in multilabel scenarios to predict the most probable class listed in a specific %mddoclink(api,context.data_handler,Tag).
105
+
- `regexp_partial_match` and `regexp_full_match`: Used by the %mddoclink(api,modules,RegExp) module to predict intents based on provided patterns.
106
+
- `description`: Used by the %mddoclink(api,modules.scoring,DescriptionScorer) to calculate scores based on the similarity between an utterance and intent descriptions.
107
107
108
108
All fields in the `intents` list are optional except for `id`.
109
109
"""
@@ -122,6 +122,8 @@
122
122
# %% [markdown]
123
123
"""
124
124
### Creating a dataset from a Python dictionary
125
+
126
+
One can load data into Python using our %mddoclink(api,context.data_handler,Dataset) object.
125
127
"""
126
128
127
129
# %%
@@ -203,7 +205,7 @@
203
205
204
206
# %% [markdown]
205
207
"""
206
-
The `Dataset` class organizes your data as a dictionary of splits (`str: datasets.Dataset`).
208
+
The %mddoclink(api,context.data_handler,Dataset) class organizes your data as a dictionary of [datasets.Dataset](https://huggingface.co/docs/datasets/v2.1.0/en/package_reference/main_classes#datasets.Dataset).
207
209
For example, after initialization, an `oos` key may be added if OOS samples are provided.
208
210
In the case of the `banking77` dataset, only the `train` split is available, which you can access as shown below:
209
211
"""
@@ -215,7 +217,7 @@
215
217
"""
216
218
### Working with dataset splits
217
219
218
-
Each split in the `Dataset` class is an instance of [datasets.Dataset](https://huggingface.co/docs/datasets/en/package_reference/main_classes#datasets.Dataset),
220
+
Each split in the %mddoclink(api,context.data_handler,Dataset) class is an instance of [datasets.Dataset](https://huggingface.co/docs/datasets/en/package_reference/main_classes#datasets.Dataset),
0 commit comments