Datasets:

system HF staff commited on
Commit
76b3800
1 Parent(s): 3dbd21f

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 +5 -17
  2. flue.py +1 -1
README.md CHANGED
@@ -25,6 +25,7 @@ task_ids:
25
  - sentiment-classification
26
  WSD-V:
27
  - text-classification-other-Word Sense Disambiguation for Verbs
 
28
  ---
29
 
30
  # Dataset Card for FLUE
@@ -32,25 +33,12 @@ task_ids:
32
  ## Table of Contents
33
  - [Dataset Description](#dataset-description)
34
  - [Dataset Summary](#dataset-summary)
35
- - [Supported Tasks](#supported-tasks-and-leaderboards)
36
  - [Languages](#languages)
37
  - [Dataset Structure](#dataset-structure)
38
- - [Text Classification (CLS)](#text-classification-(cls))
39
- - [Data Instances](#data-instances)
40
- - [Data Fields](#data-instances)
41
- - [Data Splits](#data-instances)
42
- - [Paraphrasing (PAWS-X)](#paraphrasing-(paws-x))
43
- - [Data Instances](#data-instances)
44
- - [Data Fields](#data-instances)
45
- - [Data Splits](#data-instances)
46
- - [Natural Language Inference (XNLI)](#natural-language-inference-(xnli))
47
- - [Data Instances](#data-instances)
48
- - [Data Fields](#data-instances)
49
- - [Data Splits](#data-instances)
50
- - [Word Sense Disambiguation for Verbs (WSD-V)](#word-sense-disambiguation-for-verbs-(wsd-v))
51
- - [Data Instances](#data-instances)
52
- - [Data Fields](#data-instances)
53
- - [Data Splits](#data-instances)
54
  - [Dataset Creation](#dataset-creation)
55
  - [Curation Rationale](#curation-rationale)
56
  - [Source Data](#source-data)
 
25
  - sentiment-classification
26
  WSD-V:
27
  - text-classification-other-Word Sense Disambiguation for Verbs
28
+ paperswithcode_id: null
29
  ---
30
 
31
  # Dataset Card for FLUE
 
33
  ## Table of Contents
34
  - [Dataset Description](#dataset-description)
35
  - [Dataset Summary](#dataset-summary)
36
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
37
  - [Languages](#languages)
38
  - [Dataset Structure](#dataset-structure)
39
+ - [Data Instances](#data-instances)
40
+ - [Data Fields](#data-fields)
41
+ - [Data Splits](#data-splits)
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  - [Dataset Creation](#dataset-creation)
43
  - [Curation Rationale](#curation-rationale)
44
  - [Source Data](#source-data)
flue.py CHANGED
@@ -387,7 +387,7 @@ class Flue(datasets.GeneratorBasedBuilder):
387
  if len(line) > 9:
388
  id += 1
389
  review_text, label = self._cls_extractor(line)
390
- yield id_, {"idx": id, "text": review_text, "label": label}
391
  elif self.config.name == "PAWS-X":
392
  with open(data_file, encoding="utf-8") as f:
393
  data = csv.reader(f, delimiter="\t")
 
387
  if len(line) > 9:
388
  id += 1
389
  review_text, label = self._cls_extractor(line)
390
+ yield f"{category}_{id_}", {"idx": id, "text": review_text, "label": label}
391
  elif self.config.name == "PAWS-X":
392
  with open(data_file, encoding="utf-8") as f:
393
  data = csv.reader(f, delimiter="\t")