BCFT-AI

๐Ÿงพ AI Document Extraction Program

๐Ÿ” Non-Technical Summary

This program simplifies document data extraction by transforming structured Word documents into clean, organized outputs using intelligent pattern matching.
Designed for users who need fast and reliable extraction of key fields from complex documents, it supports uploading Microsoft Word files, identifies important details, and reformats them into a well-structured template.
The interface (accessible via this app link) offers a smooth experience through a web-based or command-line flow, with logging and error tracking built right in.


๐Ÿ“‚ File Overview

File Name Purpose
documentExtraction.py Core logic for extracting, mapping, and saving structured data from Word files
autoLogger.py Provides logging for outputs, errors, and search functionality
docUpload.py Manages document upload workflows and prevents duplicate files
flask_main.py Hosts a Flask web interface for uploading and processing documents
default_main.py CLI-based coordination of upload, processing, and saving steps
form_configurations.py Stores default and case-specific mapping configurations and regex patterns
index.html User interface for file upload and process initiation

๐Ÿš€ Features


๐Ÿงฐ Technologies Used


โš™๏ธ How to Run

Web Version

  1. Launch flask_main.py
  2. Open the app via browser (URL placeholder: localhost 5000)
  3. Upload your document and process it through the interface

CLI Version

  1. Run default_main.py
  2. Follow the prompt to upload a .docx file
  3. View logs, processed results, and output file location

๐Ÿงช Example Use Case

Extracting referral details from social care referral form Word documents and extracting the relevant details to a case study form.