This driver code performs the following actions:
- Processes the will text to get the text extractions json.
- Processes the text extractions json to get the Will Model object.
- Processes the Will Model to get the Devolution output.
All of outputs are stored in the given output folder.
pip3 install -r requirements.txt
python3 -m spacy download en_core_web_sm
python3 -m spacy download en_core_web_trf
The script requires the following arguments:
- Input File: The path to the input will text file (required).
- Output Path: The directory where the output files should be saved (required).
- OPENAI API KEY: OPENAI API KEY for the modules usage (required).
- ORACLE FILE: Add PATH of ORACLE database containing testator and beneficiaries information.
python3 src/driver.py -i input.txt -o outputp_path -k OPENAI_KEY -d ORACLE_PATH