Add example for how to use.
Browse files
README.md
CHANGED
|
@@ -19,6 +19,29 @@ arxiv link: https://arxiv.org/abs/1811.00671
|
|
| 19 |
|
| 20 |
Abstract: Consistency is a long standing issue faced by dialogue models. In this paper, we frame the consistency of dialogue agents as natural language inference (NLI) and create a new natural language inference dataset called Dialogue NLI. We propose a method which demonstrates that a model trained on Dialogue NLI can be used to improve the consistency of a dialogue model, and evaluate the method with human evaluation and with automatic metrics on a suite of evaluation sets designed to measure a dialogue model’s consistency.
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
### Citation
|
| 23 |
|
| 24 |
```
|
|
|
|
| 19 |
|
| 20 |
Abstract: Consistency is a long standing issue faced by dialogue models. In this paper, we frame the consistency of dialogue agents as natural language inference (NLI) and create a new natural language inference dataset called Dialogue NLI. We propose a method which demonstrates that a model trained on Dialogue NLI can be used to improve the consistency of a dialogue model, and evaluate the method with human evaluation and with automatic metrics on a suite of evaluation sets designed to measure a dialogue model’s consistency.
|
| 21 |
|
| 22 |
+
## How to use
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from datasets import load_dataset
|
| 27 |
+
|
| 28 |
+
dataset = load_dataset('xksteven/dialogue_nli', split='train')
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
label candidates:
|
| 32 |
+
- entailment
|
| 33 |
+
- contradiction
|
| 34 |
+
- neutral
|
| 35 |
+
|
| 36 |
+
Train dataset features.
|
| 37 |
+
```
|
| 38 |
+
Dataset({
|
| 39 |
+
features: ['id', 'label', 'premise', 'hypothesis', 'dtype'],
|
| 40 |
+
num_rows: 310110
|
| 41 |
+
})
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
|
| 45 |
### Citation
|
| 46 |
|
| 47 |
```
|