Code Monkey home page Code Monkey logo

banking-faq-bot's Introduction

Banking FAQ Bot

This is retrieval based Chatbot based on FAQs found at a banking website. I've scraped the FAQs of various section from a banking website and saved it in a JSON file with format {section: [[question, answer], [question, answer], ...] }

Then I merged all this section into one big JSON file with all sections

Later I have transformed this JSON file to CSV and used the section names as class for the questions

Then I preprocess this csv file by stemming and tf-idf vectorizing the questions The same process is applied to user's query.

I have used Support Vector Machine with linear kernel to classify the user's query into different classes Once the class is found, I define a subset of questions belonging to this class and then use Cosine Similarity to find the most likely question The answer associated with the question with maximum cosine similarity to user's query is served to the user.

Various options are provided in case of mismatch. These are Debug - Let's you know the class predicted and the question with maximum cosine similarity TOP5 - Gives answer to top 5 questions with cosine similarity to user's query in descending order

banking-faq-bot's People

Contributors

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