Code Monkey home page Code Monkey logo

room-booking-chatbot's Introduction

Room-Booking-Chatbot

Very Intelligent Booking Chat Interface. It can answer your related queries on rooms, booking, requests and hotels.

Classification Algorithm

For a training data of less than 1k size, using neural nets or sequential models seemed to be an overkill, so we started with basic featurisation technique โ€” TfidfVectorizer. We also decided to contest Tf-Idf against average taken over the GloVe(Global Vectors for Word Representations) for each of the words in the questions. We used LabelEncoder to convert the intents to numbers or labels.

For having less training data was that, we were free to explore all types of classifiers like Logistic Regression, k-Nearest Neighbours, Naive Bayes, SVM, SGD Classifier and XGBoost. We also carried out extensive experiments to fine-tune the hyperparameters and achieve their best configuration.

Image

Clearly, SVM and Logistic Regression are the top two classifiers on this training data. Although SVM has the best F1 score and test score, its mean cross-validation score is very low. This shows that it has extreme behaviour on this data. Hence we go for logistic regression.

Setup

  1. Download GloVe vectors from this link. Unzip and keep the file glove.6B.100d.txt in models folder.
  2. Run conda env create -f environment.yml
  3. Run conda activate botEnv
  4. Run the bot flask application by python app.py
  5. If you face any issues with the existing models, you can train afresh by deleting the .joblib files in the models folder and run python botmodel.py

Image1 Image2 Image3

room-booking-chatbot's People

Contributors

basel-ay 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.