All codes related to pdf parsing.

Harsh Parikh 9d14888421 modified code for filing date and email extraction il y a 2 ans
complaints b6df27f4f7 fixed import position il y a 2 ans
docker 6e7ca468a4 updated docker settings for ubuntu il y a 2 ans
document_download d2322138e2 renamed folder il y a 2 ans
expert_report 1d4fd55ddc using .py files from pdfs folder il y a 2 ans
expert_resume bcec109e19 updated gitignore and updated the email extraction pattern il y a 2 ans
pdfs 9d14888421 modified code for filing date and email extraction il y a 2 ans
.gitignore bcec109e19 updated gitignore and updated the email extraction pattern il y a 2 ans
LICENSE 24a0e3093a updated license il y a 2 ans
README.md fc2881331d updated README file il y a 2 ans

README.md

pdf_parser

All the codes related to pdf parsing

The following elements are to be parsed from documents.

  1. Documents
    1. Extracting dates from documents
    2. Classification Tags
    3. Extracting Key Entities from documents
      1. Patents
      2. References
      3. Entities
        1. Names
        2. Addresses
        3. Law Firms
        4. Contact Numbers
        5. Emails
    4. Association with Cases

Setting up the workspace environment

  1. Creating a virtual environment.
    1. Launch the terminal.
    2. Go to the home directory by typing the following command.

      cd ~
      
    3. Make a new directory Installs using the following command

      mkdir Installs
      
    4. Create a virtual environment venv

      python3 -mvenv venv
      
    5. Activate the virtual environment:

      source ~/Installs/venv/bin/activate
      
  2. Installing Java

    1. Check if Java is installed in your system. If the command below throws an error, refer to this documentation

      java -version
      

      Setting up the code base.

  3. Launch the terminal.

  4. Enter the following command to go to the base directory:

    cd ~
    
  5. Make a new directory Code by using the following command

    mkdir Code
    
  6. Enter into the Code directory by using the following command

    cd Code
    
  7. Pull the current repository by entering the following command

    git pull gogs@git.fafadiatech.com:harsh/pdf_parser.git
    

Running the docker file:

  1. Launch the terminal.
  2. Change the directory to the docker file by the following command.

    cd ~/Code/pdf_parser/docker/
    
  3. Check if "docker" is installed in your machine using the command below.

    docker ps
    
  4. Activate a new screen and activate the containers using the following commands.

    screen -S docker
    docker-compose up
    

TODO LIST:

  • Implementing OCR on tika.
  • Dockerising apache-tika.
  • Testing the re on the scanned pdfs