Giter Club home page Giter Club logo

domain-classification-of-customer-messages-using-nlp's Introduction

Project Overview

Problem Statement

Haptik is one of the world's largest conversational AI platforms. It is a personal assistant mobile app, powered by a combination of artificial intelligence and human assistance. It has its domain in multiple fields including customer support, feedback, order status and live chat.

We have with us the dataset of Haptik containing the messages it receives from the customers and which topic(class) the messages refer to.

In this project we created a model predicting which class a particular message belongs to using NLP. We also tried to use techniques like LSA (Latent Semantic Analysis) and LDA (Latent Dirichlet Allocation) to assign topics to new messages.

The dataset consists of message column along with the different column associated with the topic they could associated with it.

We had with us two variations of the same dataset

  • Train data(40000 rows) [We trained our model on this]

  • Test data(10000 rows) [We validated our model on this]

Learnings from the project

Doing this project helped us to apply the following skills:

  • Text preprocessing techniques like Tokenization, Vectorization, etc.

  • Implementation of Logistic Regression, Naive Bayes and Linear SVM.

  • Topic modelling with LSA (Latent Semantic Analysis) and LDA (Latent Dirichlet Allocation).

  • Usage of Coherence Score to determine the optimum number of topics.

Approach taken to solve the problem

Our approach to solve this Project was as follows:

  • Data Cleaning - We loaded the dataset and performed a basic cleaning in order to simplify our futher steps.

  • Data Processing - We employed a normal TF-IDF vectorizer to vectorize the message column and label encode the category column, essentially making it a classification problem.

  • Classification Implementation - We applied Logistic Regression , Naive Bayes and Linear SVM model onto the data.

  • Validation of test data - We saw how well our models runs on test set.

  • LSI Modeling - We tried to attempt topic modeling on our dataset using Latent Semantic Analysis or LSI.

  • LDA Modeling - We tried to do topic modeling using Latent Dirichlet Allocation or LDA. We first found the optimum no. of topics using coherence score and then created a model attaining to the optimum no. of topics.

domain-classification-of-customer-messages-using-nlp's People

Contributors

sufiyandilawarkhan 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.