File size: 2,341 Bytes
212f42c
 
 
 
 
5bb4393
 
212f42c
8b9199a
 
 
711ca7e
8b9199a
 
 
e45a199
a06ae39
9e4a86d
8b9199a
711ca7e
8b9199a
9e4a86d
8b9199a
9e4a86d
8b9199a
9e4a86d
8b9199a
 
 
711ca7e
8b9199a
 
 
711ca7e
8b9199a
711ca7e
 
 
98f2b57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
task_categories:
- text-generation
language:
- en
size_categories:
- 10K<n<100K
---

This dataset is based on the "cumulative" configuration (i.e., slots previously filled are kept in the state)
of the MultiWoz 2.2 dataset available also at [pfb30/multi_woz_v22](https://huggingface.co/pfb30/multi_woz_v22). 
Therefore, the system and user utterances, the active intents, and the services are exactly the same.
In addition to the data present in version 2.2, this dataset contains
the annotations from versions 2.1, 2.3, and 2.4 for each dialogue turn.
This dataset is an artefact of the paper [Diable: Efficient Dialogue State Tracking as Operations on Tables
 (Lesci et al., 2023)](https://arxiv.org/abs/2305.17020).


## Data Format

A brief recap on the structure of the MultiWoz dataset:

  - Each dialogue turn is composed of a system utterance and a user utterance, in this exact order.
  
  - The initial system utterance is filled in with the `none` string.
 
  - In the last dialogue turn, it is always the system that greets the user.
    This last turn is kept, and the user utterance is filled in with the `none` string.
    Usually, during evaluation, this dialogue turn is not considered.
  
  - To save data as an arrow file, you must "pad" the states so they all have the same keys.
    To do this the `None` value is introduced. Therefore, when you load it back, it is convenient
    to have a way to remove the padding. To do so, a function like the following can help
  ```python 
  def remove_empty_slots(state: dict[str, list[str] | None] | None]) -> dict[str, list[str]] | None]:
    if state is None:
        return None
    return {k: v for k, v in state.items() if v is not None}
  ```
  
  - The schema has been updated to make all the versions compatible. Basically, the "book" string has been removed from slots in v2.2. The updated schema is the following
  
```yaml
attraction-area
attraction-name
attraction-type
hotel-area
hotel-day
hotel-internet
hotel-name
hotel-parking
hotel-people
hotel-pricerange
hotel-stars
hotel-stay
hotel-type
restaurant-area
restaurant-day
restaurant-food
restaurant-name
restaurant-people
restaurant-pricerange
restaurant-time
taxi-arriveby
taxi-departure
taxi-destination
taxi-leaveat
train-arriveby
train-day
train-departure
train-destination
train-leaveat
train-people
```