system HF staff commited on
Commit
550c7da
1 Parent(s): ab6d9e7

Update files from the datasets library (from 1.7.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.7.0

Files changed (2) hide show
  1. README.md +4 -3
  2. bswac.py +3 -3
README.md CHANGED
@@ -17,6 +17,7 @@ task_categories:
17
  - sequence-modeling
18
  task_ids:
19
  - language-modeling
 
20
  ---
21
 
22
  # Dataset Card for BsWac
@@ -24,12 +25,12 @@ task_ids:
24
  ## Table of Contents
25
  - [Dataset Description](#dataset-description)
26
  - [Dataset Summary](#dataset-summary)
27
- - [Supported Tasks](#supported-tasks-and-leaderboards)
28
  - [Languages](#languages)
29
  - [Dataset Structure](#dataset-structure)
30
  - [Data Instances](#data-instances)
31
- - [Data Fields](#data-instances)
32
- - [Data Splits](#data-instances)
33
  - [Dataset Creation](#dataset-creation)
34
  - [Curation Rationale](#curation-rationale)
35
  - [Source Data](#source-data)
17
  - sequence-modeling
18
  task_ids:
19
  - language-modeling
20
+ paperswithcode_id: null
21
  ---
22
 
23
  # Dataset Card for BsWac
25
  ## Table of Contents
26
  - [Dataset Description](#dataset-description)
27
  - [Dataset Summary](#dataset-summary)
28
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
29
  - [Languages](#languages)
30
  - [Dataset Structure](#dataset-structure)
31
  - [Data Instances](#data-instances)
32
+ - [Data Fields](#data-fields)
33
+ - [Data Splits](#data-splits)
34
  - [Dataset Creation](#dataset-creation)
35
  - [Curation Rationale](#curation-rationale)
36
  - [Source Data](#source-data)
bswac.py CHANGED
@@ -81,9 +81,9 @@ class Bswac(datasets.GeneratorBasedBuilder):
81
  ]
82
 
83
  def _generate_examples(self, filepath):
84
- for fp in filepath:
85
  with open(fp, encoding="utf8") as f:
86
- for id_, row in enumerate(f):
87
- yield id_, {
88
  "sentence": row.strip(),
89
  }
81
  ]
82
 
83
  def _generate_examples(self, filepath):
84
+ for file_idx, fp in enumerate(filepath):
85
  with open(fp, encoding="utf8") as f:
86
+ for row_idx, row in enumerate(f):
87
+ yield f"{file_idx}_{row_idx}", {
88
  "sentence": row.strip(),
89
  }