Giter Club home page Giter Club logo

ml_documentmodeling's Introduction

DocumentModeling on 20Newsgroups Dataset

This repository consists of visualizations and results of different document modeling and clustering techniques performed on 20Newsgroups dataset.

20Newsgroups dataset has almost 20,000 documents.

First Dataset is cleaned by removing stop words , lowering the words and lemmatization. Second, two vocabularies are created โ€“ one with all the words and the other with the most frequent 2000 words. Built Bag Of Words (BOW) model, TFIDF model, LDA model, and Doc2Vec model on both the vocabularies.

Topics are visualized using PyLDAvis and Word cloud visualization techniques. Word embeddings and Document embeddings are visualized using PCA and t-SNE. K-means clustering is performed on all these document models (BOW, TF-IDF, Doc2Vec, LDA). The results of different vocabularies, different topic models, and various clustering outputs are analysed and compared.

Sklearn, genism, nltk, seaborn, and matplot libraries are used.

Visualization of topics using PyLDAvis and Word Cloud

PyLDAvis of all vocabulary

alt text

PyLDAvis of 2k vocabulary

alt text

alt text

Document Embeddings

alt text

K-means of different document models

k-means on BOW alt text k-means on TF-IDF alt text k-means on LDA alt text k-means on Doc2Vec alt text

ml_documentmodeling's People

Contributors

jayavardhanikathika avatar

Watchers

 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.