system HF staff commited on
Commit
349586e
1 Parent(s): 48f107b

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. tab_fact.py +2 -2
README.md CHANGED
@@ -17,6 +17,7 @@ task_categories:
17
  - text-classification
18
  task_ids:
19
  - fact-checking
 
20
  ---
21
 
22
  # Dataset Card Creation Guide
@@ -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
  - text-classification
18
  task_ids:
19
  - fact-checking
20
+ paperswithcode_id: tabfact
21
  ---
22
 
23
  # Dataset Card Creation Guide
 
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)
tab_fact.py CHANGED
@@ -138,8 +138,8 @@ class TabFact(datasets.GeneratorBasedBuilder):
138
 
139
  statements, labels, caption = example
140
 
141
- for statement, label in zip(statements, labels):
142
- yield i, {
143
  "id": i,
144
  "table_id": table_id,
145
  "table_text": tabel_text,
 
138
 
139
  statements, labels, caption = example
140
 
141
+ for statement_idx, (statement, label) in enumerate(zip(statements, labels)):
142
+ yield f"{i}_{statement_idx}", {
143
  "id": i,
144
  "table_id": table_id,
145
  "table_text": tabel_text,