Maxime commited on
Commit
72248e1
1 Parent(s): 6f54ac4

remove num_pair in flat

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. mfaq.py +0 -2
README.md CHANGED
@@ -100,9 +100,9 @@ The data is organized by page. Each page contains a list of questions and answer
100
 
101
  #### Flattened
102
  The data is organized by pair (i.e. pages are flattened). You can access the flat version of any language by appending `_flat` to the configuration (e.g. `en_flat`). The data will be returned pair-by-pair instead of page-by-page.
103
- - **id**
 
104
  - **language**
105
- - **num_pairs**: the number of FAQs on the page
106
  - **domain**: source web domain of the FAQs
107
  - **question**
108
  - **answer**
100
 
101
  #### Flattened
102
  The data is organized by pair (i.e. pages are flattened). You can access the flat version of any language by appending `_flat` to the configuration (e.g. `en_flat`). The data will be returned pair-by-pair instead of page-by-page.
103
+ - **domain_id**
104
+ - **pair_id**
105
  - **language**
 
106
  - **domain**: source web domain of the FAQs
107
  - **question**
108
  - **answer**
mfaq.py CHANGED
@@ -61,7 +61,6 @@ class MFAQ(datasets.GeneratorBasedBuilder):
61
  "domain_id": datasets.Value("int64"),
62
  "pair_id": datasets.Value("int64"),
63
  "language": datasets.Value("string"),
64
- "num_pairs": datasets.Value("int64"),
65
  "domain": datasets.Value("string"),
66
  "question": datasets.Value("string"),
67
  "answer": datasets.Value("string")
@@ -122,7 +121,6 @@ class MFAQ(datasets.GeneratorBasedBuilder):
122
  "pair_id": i,
123
  "domain": data["domain"],
124
  "language": data["language"],
125
- "num_pairs": 1,
126
  "question": pair["question"],
127
  "answer": pair["answer"]
128
  }
61
  "domain_id": datasets.Value("int64"),
62
  "pair_id": datasets.Value("int64"),
63
  "language": datasets.Value("string"),
 
64
  "domain": datasets.Value("string"),
65
  "question": datasets.Value("string"),
66
  "answer": datasets.Value("string")
121
  "pair_id": i,
122
  "domain": data["domain"],
123
  "language": data["language"],
 
124
  "question": pair["question"],
125
  "answer": pair["answer"]
126
  }