Git Product home page Git Product logo

vsnupoudel / document-classification-using-doc2vec Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 12.66 MB

Training Documents using Tags. Predicting both tags and embedding vectors of test document to classify them, and to find the nearest document in train set.

Python 0.44% HTML 0.11% Jupyter Notebook 99.44% Dockerfile 0.01%
nlp-machine-learning nlp doc2vec dockerized kubernetes gcp le paragraph-vector

document-classification-using-doc2vec's Introduction

  • Training Documents using Tags.
  • Predicting both tags and embedding vectors of test document to classify them, and to find the nearest document in train set.

Trying 2 methods.

Use Doc2vec algorithm after extracting text using OCR API.

  1. Two documents which have the most similar Doc2Vec embeddings are similar documents.

2nd method - TODO :Use algorithms that detect similarity of images

  1. Crop the heading part of images
  2. Find a pretrained feature vector online on tfhub.dev or other sources.
  3. Run these pretrained feature vectors on all the templates ( training data) , and store them.
  4. Take any input from the input folder ( test set), get its feature vectors.
  5. Using distance metric like Euclidean, Manhattan to find which image in template is nearest to the Input

External Endpoint for the GKE app

External endpoint Here

TODO

  1. Add tags while training, return tags during prediction # Completed
  2. Predict multiple files at the same time, return a dictionary of outputs
  3. Find if there is a function in gensim for prediction, instead of manually calcuating distances

document-classification-using-doc2vec's People

Contributors

vsnupoudel avatar

Watchers

 avatar  avatar

Forkers

arpitkmll

document-classification-using-doc2vec's Issues

Try TF IDF

See if simple approach works faster and is more accurate.

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.