Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  for filename, f in tar_iterator:
                                     ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
                  for x in self.generator(*self.args):
                           ~~~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1405, in _iter_from_urlpath
                  with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
                       ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 982, in xopen
                  file_obj = fs.open(paths[0], mode)
                File "<string>", line 3, in open
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
                  return self._mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
                  return self._execute_mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
                  result = effect(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
                  tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
                                                               ~~~^^^^^^^^
              TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

json
list
__key__
string
__url__
string
[{"task":"ADE-Drug Relation","type":"ext","language":"en","id":3843,"split":"test","instruction":"Gi(...TRUNCATED)
ADE-Drug Relation
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"ADE-Drug Dosage","type":"ext","language":"en","id":20,"split":"test","instruction":"Given (...TRUNCATED)
ADE-Drug Dosage
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"icliniq-10k","language":"en","type":"gen","id":0,"split":"test","instruction":"Given the f(...TRUNCATED)
icliniq-10k
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"HealthCareMagic-100k","language":"en","type":"gen","id":0,"split":"test","instruction":"Gi(...TRUNCATED)
HealthCareMagic-100k
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"ClinicalNotes-UPMC","language":"en","type":"clf","id":2138,"split":"test","instruction":"G(...TRUNCATED)
ClinicalNotes-UPMC
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"ADE-Identification","type":"clf","language":"en","id":18869,"split":"test","instruction":"(...TRUNCATED)
ADE-Identification
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"BrainMRI-AIS","language":"en","type":"clf","id":2722,"split":"test","instruction":"Given a(...TRUNCATED)
BrainMRI-AIS
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"MEDIQA 2019-RQE","language":"en","type":"clf","id":8890,"split":"test","instruction":"Give(...TRUNCATED)
MEDIQA 2019-RQE
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"MTSamples","language":"en","type":"clf-mul-label","id":2100,"split":"test","instruction":"(...TRUNCATED)
MTSamples
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
[{"task":"MTSamples Temporal","language":"en","type":"ext","id":20,"split":"test","instruction":"Giv(...TRUNCATED)
MTSamples Temporal
"hf://datasets/YLab-Open/LLMStigma@820583cedf1fce3d680e3b2b5ca9e2c65da71c48/Destigmatizing Experimen(...TRUNCATED)
End of preview.

LLM Stigma Data

This dataset contains the data for the paper "Large Language Models Generate Stigmatizing Language During Reasoning Over Real-World Clinical Data". It contains the system prompt, user input, true labels, and LLM outputs of the main and the destigmatizing experiment. The data is packed on the model level. Each tar.gz file contains 13 JSON files.

Note: Only the tasks that are allowed to be open-sourced (N = 13) are included. For the rest of tasks (N = 22), please contact the authors for access.

Each entry of the JSON file has the following field names:

  • task: Name of the task
  • type: Task type ("clf" means classification, "ext" means extraction, "gen" means generation)
  • language: Task language (e.g., "en" means that this is an English task)
  • id: ID of the case (The ids shown start with the first id of the test set.)
  • split: Set split ("test" means the test set. Only the test set is used in this study.)
  • instruction: The system prompt
  • input: The user input
  • output: The true label
  • pred: The model's output
Downloads last month
6