Portgas37 commited on
Commit
8855ba4
·
1 Parent(s): 7bfe660

dataset info

Browse files
Files changed (3) hide show
  1. README.md +16 -0
  2. dataset.py +2 -3
  3. dataset_infos.json +5 -14
README.md ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: title
5
+ dtype: string
6
+ - name: text
7
+ dtype: string
8
+ - name: source
9
+ dtype: string
10
+ splits:
11
+ - name: train
12
+ num_bytes: 2737612
13
+ num_examples: 5000
14
+ download_size: 0
15
+ dataset_size: 2737612
16
+ ---
dataset.py CHANGED
@@ -1,7 +1,7 @@
1
  import json
2
  import datasets
3
 
4
- class MNLPDataset(datasets.GeneratorBasedBuilder):
5
  def _info(self):
6
  return datasets.DatasetInfo(
7
  features=datasets.Features({
@@ -13,11 +13,10 @@ class MNLPDataset(datasets.GeneratorBasedBuilder):
13
  )
14
 
15
  def _split_generators(self, dl_manager):
16
- path = dl_manager.download_and_extract("wiki_rag_subset_with_source.jsonl")
17
  return [
18
  datasets.SplitGenerator(
19
  name=datasets.Split.TRAIN,
20
- gen_kwargs={"filepath": path},
21
  )
22
  ]
23
 
 
1
  import json
2
  import datasets
3
 
4
+ class MNLP_M2_rag_documents(datasets.GeneratorBasedBuilder):
5
  def _info(self):
6
  return datasets.DatasetInfo(
7
  features=datasets.Features({
 
13
  )
14
 
15
  def _split_generators(self, dl_manager):
 
16
  return [
17
  datasets.SplitGenerator(
18
  name=datasets.Split.TRAIN,
19
+ gen_kwargs={"filepath": "wiki_rag_subset_with_source.jsonl"},
20
  )
21
  ]
22
 
dataset_infos.json CHANGED
@@ -2,24 +2,15 @@
2
  "default": {
3
  "description": "RAG documents for MNLP",
4
  "features": {
5
- "title": {
6
- "_type": "Value",
7
- "dtype": "string"
8
- },
9
- "text": {
10
- "_type": "Value",
11
- "dtype": "string"
12
- },
13
- "source": {
14
- "_type": "Value",
15
- "dtype": "string"
16
- }
17
  },
18
  "splits": {
19
  "train": {
20
  "name": "train",
21
- "num_bytes": 0,
22
- "num_examples": 5000
23
  }
24
  }
25
  }
 
2
  "default": {
3
  "description": "RAG documents for MNLP",
4
  "features": {
5
+ "title": { "_type": "Value", "dtype": "string" },
6
+ "text": { "_type": "Value", "dtype": "string" },
7
+ "source": { "_type": "Value", "dtype": "string" }
 
 
 
 
 
 
 
 
 
8
  },
9
  "splits": {
10
  "train": {
11
  "name": "train",
12
+ "num_bytes": 2737612,
13
+ "num_examples": 5000
14
  }
15
  }
16
  }