pietrolesci commited on
Commit
711ca7e
1 Parent(s): 9e4a86d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -2
README.md CHANGED
@@ -1,11 +1,26 @@
1
- This dataset is based on the "cumulative" configuration of the MultiWoz 2.2 dataset available also on the [HuggingFace Hub](https://huggingface.co/datasets/multi_woz_v22). Therefore, the system and user utterances, the active intents, and the services are exactly the same.
 
2
 
3
  In addition to the data present in version 2.2, this dataset contains, for each dialogue turn, the annotations from versions 2.1, 2.3, and 2.4.
4
 
 
5
  NOTE:
6
 
7
  - Each dialogue turn is composed of a system utterance and a user utterance, in this exact order
8
 
9
  - The initial system utterance is filled in with the `none` string
10
 
11
- - In the last dialogue turn 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)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This dataset is based on the "cumulative" configuration of the MultiWoz 2.2 dataset available also on the [HuggingFace Hub](https://huggingface.co/datasets/multi_woz_v22).
2
+ Therefore, the system and user utterances, the active intents, and the services are exactly the same.
3
 
4
  In addition to the data present in version 2.2, this dataset contains, for each dialogue turn, the annotations from versions 2.1, 2.3, and 2.4.
5
 
6
+
7
  NOTE:
8
 
9
  - Each dialogue turn is composed of a system utterance and a user utterance, in this exact order
10
 
11
  - The initial system utterance is filled in with the `none` string
12
 
13
+ - In the last dialogue turn 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)
14
+
15
+ - To be able to save data as an arrow file you need to "pad" the states to 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".
16
+
17
+ In order to do so, a function like the following can help
18
+
19
+ ```python
20
+ def remove_empty_slots(state: Union[Dict[str, Union[List[str], None]], None]) -> Union[Dict[str, List[str]], None]:
21
+
22
+ if state is None:
23
+ return None
24
+
25
+ return {k: v for k, v in state.items() if v is not None}
26
+ ```