Thank you for sharing this synthetic method for producing discharge notes from PMC-Patients' summaries.
I am trying to generate the restructured discharge notes from the PMC-Patients.csv file. When I run the code for openai_parallel_request.py, I encounter the following error:
Traceback (most recent call last): File "/home/jun/Workspace/github/Asclepius/preprocessing/openai_parallel_request.py", line 456, in <module> asyncio.run( File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/home/jun/Workspace/github/Asclepius/preprocessing/openai_parallel_request.py", line 175, in process_api_requests_from_file request_json = json.loads(next(requests)) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I would like to confirm that the input file is in .csv format, correct? Do you have any idea what the problem could be?
Hi Junu Kim,
Thank you for sharing this synthetic method for producing discharge notes from PMC-Patients' summaries.
I am trying to generate the restructured discharge notes from the PMC-Patients.csv file. When I run the code for openai_parallel_request.py, I encounter the following error:
Traceback (most recent call last): File "/home/jun/Workspace/github/Asclepius/preprocessing/openai_parallel_request.py", line 456, in <module> asyncio.run( File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/home/jun/Workspace/github/Asclepius/preprocessing/openai_parallel_request.py", line 175, in process_api_requests_from_file request_json = json.loads(next(requests)) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I would like to confirm that the input file is in .csv format, correct? Do you have any idea what the problem could be?
Best, Jun Hou