The dataset viewer is not available for this split.
Error code: FeaturesError
Exception: ArrowTypeError
Message: ("Expected bytes, got a 'int' object", 'Conversion failed for column 15970 with type object')
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 137, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 233, in compute_first_rows_from_streaming_response
iterable_dataset = iterable_dataset._resolve_features()
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2998, in _resolve_features
features = _infer_features_from_batch(self.with_format(None)._head())
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1918, in _head
return _examples_to_batch(list(self.take(n)))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2093, in __iter__
for key, example in ex_iterable:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1576, in __iter__
for key_example in islice(self.ex_iterable, self.n - ex_iterable_num_taken):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 279, in __iter__
for key, pa_table in self.generate_tables_fn(**gen_kwags):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 167, in _generate_tables
pa_table = pa.Table.from_pandas(df, preserve_index=False)
File "pyarrow/table.pxi", line 3874, in pyarrow.lib.Table.from_pandas
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/pandas_compat.py", line 611, in dataframe_to_arrays
arrays = [convert_column(c, f)
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/pandas_compat.py", line 611, in <listcomp>
arrays = [convert_column(c, f)
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/pandas_compat.py", line 598, in convert_column
raise e
File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/pandas_compat.py", line 592, in convert_column
result = pa.array(col, type=type_, from_pandas=True, safe=safe)
File "pyarrow/array.pxi", line 339, in pyarrow.lib.array
File "pyarrow/array.pxi", line 85, in pyarrow.lib._ndarray_to_array
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowTypeError: ("Expected bytes, got a 'int' object", 'Conversion failed for column 15970 with type object')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.
Patient Doctor QA Raw Dataset (ZoneTwelve/patient_doctor_qa_rawdata)
⚠️ IMPORTANT: All files in this dataset use Big5 encoding, as they originate from public e-hospital. Make sure your system is configured to handle Big5 encoded files properly.
Overview
This dataset (ZoneTwelve/patient_doctor_qa_rawdata) contains patient-related Question-Answer pairs derived from Taiwan's e-Hospital system. The data is sourced from the Taiwan e-Hospital platform (https://sp1.hso.mohw.gov.tw/), providing valuable healthcare-related QA information.
Dataset Structure
The dataset is stored in Hugging Face's blob format for efficient storage and access. It includes:
- Question-answer pairs related to patient care
- Medical terminology and procedures
- Healthcare facility information
- Patient care guidelines
Data Source
- Origin: Taiwan e-Hospital Platform
- URL: https://sp1.hso.mohw.gov.tw/
- Format: Processed and stored in blob format
Tools and Utilities
1. Viewer Tool (viewer.py)
A Python script to preview the contents of blob files.
Features:
- List all files in the blob storage
- Preview specific file contents
- Support for both text and binary files
- Configurable preview size
Usage:
# List all files
python viewer.py /path/to/ZoneTwelve/patient_docker_qa_data --list
# Preview specific file
python viewer.py /path/to/ZoneTwelve/patient_docker_qa_data --file 999
# Preview with custom size limit
python viewer.py /path/to/ZoneTwelve/patient_docker_qa_data --file 999 --size 2048
2. Export Tool (export.py)
A Python script to extract files from the blob storage.
Features:
- Extract specific files from blobs
- Maintain original file structure
- Custom output path support
- File listing capability
Usage:
# List available files
python export.py /path/to/ZoneTwelve/patient_docker_qa_data --list
# Extract specific file
python export.py /path/to/ZoneTwelve/patient_docker_qa_data --file 999 --output /path/to/save/999.html
# Extract to default location
python export.py /path/to/ZoneTwelve/patient_docker_qa_data --file 999
Directory Structure
.
├── blobs/
│ ├── metadata.json
│ ├── blob_0
│ ├── blob_1
│ └── ...
├── viewer.py
└── export.py
Requirements
- Python 3.6 or higher
- Standard Python libraries:
- json
- argparse
- pathlib
- shutil
Installation
- Clone the repository
- Ensure Python 3.6+ is installed
- No additional dependencies required
Usage Examples
Viewing Files
# List all available files
python viewer.py ./blobs --list
# Preview a specific QA file
python viewer.py ./blobs --file 999
Extracting Files
# Extract a specific file to custom location
python export.py ./blobs --file qa/patient_guidelines.txt --output ./exported/guidelines.txt
# Extract maintaining original structure
python export.py ./blobs --file qa/medical_terms.txt
Data Format
The blob storage contains file types including:
- Raw HTML files (.html), but without extention name
License and Usage Rights
Please refer to Taiwan e-Hospital's terms of service and data usage guidelines for specific licensing information.
Contributing
For contributions or issues, please follow these steps:
- Fork the repository
- Create a feature branch
- Submit a pull request
Contact
For questions or support regarding the dataset, please contact the maintainers or refer to the Taiwan e-Hospital platform.
Acknowledgments
- Taiwan e-Hospital for providing the source data
- Contributors to the data collection and processing pipeline
- Downloads last month
- 15