Code Monkey home page Code Monkey logo

pdf-mining's Introduction

PDF-mining

I was given about 600 PDF files of various formats and sources, and a CSV file bse_companies.csv that had names of about 7000 Indian companies.

Goal:

  1. Go through each PDF file, extract names of the authors of the document.
  2. extract the institution that authored this document, e.g., Kotak Equitiies Research, ICICI securities etc. In certain cases there will be no institution associated with the document, in that case mark it as "Others".
  3. Extract the names of companies mentioned in each PDF.
  4. If it is a company report, then get the broker recommendation - BUY/SELL etc
  5. If it is a company report, get the Target Price of the stock.

Approach:

  1. Extracted pagewise text from PDF files with pdfminer
  2. Built Indian data of companies and names, finetuned dislim/BERT-based-NER with Indian data
  3. Trained NER model to recognise ORG, PER, used it for Goals 1, 2, 3
  4. Used fasttext with weighted words from text and title as seperate features and used it with unsupervised KNN clustering to identfify reports
  5. Used regex on reports classified to get Goals 4, 5

pdf-mining's People

Contributors

aindriyabarua avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.