Information Extraction from PDF

Introduction

Natural Language Processing is a task that involves data collection from various sources and not every time one is lucky to get the baked data. Many times you have to extract data from various sources, one of them is Files.

In this post, I will be talking specifically about the PDF files.

Getting the Guns ready

After some exploration on the internet, I came across a python package PyPDF which sounded a good contender to achieve what we want (text extraction), although it can do more than what we need. This package can also be used to generate, decrypting and merging PDF files, although its usage details are not that clear that’s why I thought of writing a post to explain it.

Installation

Reading the File and extracting Text

Using the above code one can easily extract text from the PDF files

Also, have a look at some posts related to NLP

GROKs for Information Extraction

Using GROKs in Python

Document Vectorization

GloVE Vectorization

Word Vectorization

To read more about the text extraction and other tech-related stuff do have a look at my blog.

Story Teller and Data enthusiast