system HF staff commited on
Commit
22a72ad
1 Parent(s): ff703b5

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 +2 -1
  2. ohsumed.py +1 -1
README.md CHANGED
@@ -17,6 +17,7 @@ task_categories:
17
  - text-classification
18
  task_ids:
19
  - multi-label-classification
 
20
  ---
21
 
22
  # Dataset Card for ohsumed
@@ -24,7 +25,7 @@ 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)
 
17
  - text-classification
18
  task_ids:
19
  - multi-label-classification
20
+ paperswithcode_id: null
21
  ---
22
 
23
  # Dataset Card for ohsumed
 
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)
ohsumed.py CHANGED
@@ -188,7 +188,7 @@ class Ohsumed(datasets.GeneratorBasedBuilder):
188
  if line.startswith(".I"):
189
  tag = ".I"
190
  if data["medline_ui"] != -1:
191
- id_ = data["seq_id"]
192
  yield id_, {
193
  "seq_id": data["seq_id"],
194
  "medline_ui": data["medline_ui"],
 
188
  if line.startswith(".I"):
189
  tag = ".I"
190
  if data["medline_ui"] != -1:
191
+ id_ = data["seq_id"] + "_" + data["medline_ui"]
192
  yield id_, {
193
  "seq_id": data["seq_id"],
194
  "medline_ui": data["medline_ui"],