Code Monkey home page Code Monkey logo

eurekaqa's Introduction

EurekaQA - Question & Answering Model

EurekaQA is a Question & Answering Model that has been trained by Kaludi to analyze text data and automatically answer questions based on the information contained within. The model uses advanced machine learning algorithms to perform extractive question-answering, meaning it selects the relevant information from a given text document to present as the answer to the question.

Web App

Click Here To View This App Online!

Image

The model is trained on the EurekaQA dataset and the model can be found on Hugging Face.

EurekaQA can be used in a variety of applications, including customer service, virtual assistants, and information retrieval systems.

How to use EurekaQA

You can use EurekaQA by importing the pipeline method from the transformers library and setting the task to "question-answering" and the model to "Kaludi/eurekaQA-model". You can then pass in a context and a question as a list to the pipeline method to receive the answer.

`from transformers import pipeline

context = "The Greater Mexico City has a gross domestic product (GDP) of US$411 billion in 2011, making Mexico City urban agglomeration one of the economically largest metropolitan areas in the world. The city was responsible for generating 15.8% of Mexico's Gross Domestic Product and the metropolitan area accounted for about 22% of total national GDP. As a stand-alone country, in 2013, Mexico City would be the fifth-largest economy in Latin America—five times as large as Costa Rica's and about the same size as Peru's." question = "What percent of the Mexican GDP is the metropolitan area of Mexico City responsible for?"

question_answer = pipeline("question-answering", model = "Kaludi/eurekaQA-model")

answer = question_answer([context, question], top_k=1) print(answer)`

Download and Use EurekaQA on App

  1. Clone or download the repository.
  2. Install the required libraries by running pip install -r requirements.txt.
  3. Run the script using python app.py.
  4. Input a customer review in the textbox and click on "Run".
  5. The output will show the sentiment prediction of the review as either Positive or Negative along with the respective confidence score.

Libraries Used

  • Gradio
  • Transformers

Contributor

eurekaqa's People

Contributors

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