Skip to content

Extract, Store and manage conditions from EAC, EA Act and Management Plans

License

Notifications You must be signed in to change notification settings

bcgov/EPIC.conditions

Repository files navigation

Installation

  1. Clone the repository:

    git clone https://github.com/bcgov/EPIC.conditions

    cd EPIC.conditions

  2. Set up a virtual environment:

    python -m venv venv

  3. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate

    • On Linux/MacOS:

      source venv/bin/activate

  4. Install the required packages:

    pip install -r requirements.txt

  5. Create a file named .env in the root directory of the project and add your OpenAI API key:

    OPENAI_API_KEY=openai_api_key_here
    

Usage

Individual PDFs:

Follow the condition-parser README to extract info and get a JSON.

Follow the condition-lib README to add the extracted JSON to the PostgreSQL database.

Note: gradio_ui.py in this directory is depreciated.

Multiple PDFs (Batch Processing):

See batch processing README.

For verifying the output of a batch, see manual verification README.

Demo

Condition extractor demo Recording - (Slides)

Resources

About

Extract, Store and manage conditions from EAC, EA Act and Management Plans

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published