Git Product home page Git Product logo

text-analytics's Introduction

Text-Analytics

Sentiment Analysis using LSTM

Creation of Word2Vec model to get word embeddings using the Gensim package.

Implementation of RNN LSTM for sentiment analysis using maxplooing, convolution and dropout to prevent overfitting. Using word embeddings vector of size 150.

The input to LSTM will be a vector for each news article of fixed length 1000 words, which are padded if the articles are less in length and restricted to 1000 words by removing the extra ones. Thus for each article the size of vector is same which is then multipled with word embedding matrix.

So the output for an article is the vector of shape (1000, 150) given input to RNN.

RNN is implemented using KERAS implementation of Tensorflow. Feel free to change the input data to any other text.

Instead of using Word2Vec you can also use any other pre trained models like GloVe for embedding matrix.

Topic Modelling using Gensim

The topic modelling is done on twitter data, using the tweepy package of python.

The text data is cleaned using conventional way of cleaning using nltk. The cleaning process includes tokenizing, lemmatizing, removing stopwords and punctuations from the text.

The Gensim model has Latent Dirichlet Allocation(LDA) model which identifies latent factors to find words that are similar and belong to one topic. LDA Makes use of Non-negative Matrix Factorization (NMF) to identify latent factors.

text-analytics's People

Contributors

nzalake52 avatar

Stargazers

 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.