Giter Site home page Giter Site logo

cloudxtreme / robomax Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nileshsah/robomax

0.0 1.0 0.0 89.37 MB

A machine-learning based open-domain QA chatbot from scratch ๐Ÿค–

License: MIT License

Jupyter Notebook 95.47% CSS 3.58% HTML 0.37% JavaScript 0.58%

robomax's Introduction

RoboMax ๐Ÿค–

Meet RoboMax! Your personal assistant for all your queries about the US election ยฏ\(ใƒ„)/ยฏ

The Project

This repository contains self-sustained Jupyter notebooks used for training our assistant RoboMax to make it capable enough to answer open-domain questions. We use tweets as a source for our knowledge-base and attempt to reflect back the opinion of the world about your question of interest. At the moment, we've tweaked our RoboMax to answer questions about the 2016 US election from tweets gracefully made available at https://www.kaggle.com/kinguistics/election-day-tweets/#election_day_tweets.csv

Getting Started

The notebook robomax-training-notebook.ipynb serves as the starting point for this project which constitutes of the major data exploration and feature engineering tasks.

The notebook robomax-election-tweets-bot.ipynb involves tweaking RoboMax in order to answer questions based on election tweets.

Dataset

Due to the unavailability of a twitter based question-answer dataset, we resorted to using the pretty standard SQuAD reading comprehension dataset in a modified way. Instead of predicting the factual answers, we trained our model to identify the sentence containing the required answer.

Training

We built our model based on rather nominal features with a baseline Random Forest Classifier which leaves a huge scope for improvement. AuC served as our metric to optimize due to the traditional class imbalance issue. We aimed to improve the recall for the sentences containing the correct answer over our prediction precision.

Prediction

We use a combination of indexing, predicting and summarizing to formulate an answer to the given question. Whoosh serves as our go-to indexing library. Our pre-trained model generates scores for the results from the indexer in terms of which tweet is closest to the question followed by capping the best results using an Edmundson summarizer to finally bake up an answer.

robomax's People

Contributors

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