This project provides a script for extracting clinical trial data from abstracts using OpenAI's API.
- Clone the repository.
- Install required libraries:
pip install openai pandas
- Set up your OpenAI API key in the script.
- Place your abstracts in a text file and set the file path in the script.
- Run the script:
python your_script.py
- The extracted data will be saved in the specified output folder.
- Modify
general_instruction,query_study_info,query_outcomes_info1, and other query variables to customize the extraction process. - Detailed prompts can be provided upon request.