Giter Site home page Giter Site logo

query-expansion-service's Introduction

COMS-E6111-Query-Expansion

Contributors of this project in no particular order

Objective

To design an efficient information retrieval system that exploits user-provided relevance feedback to improve the search results returned by Bing. This aims to achieve the target precision entered by the user by disambiguating queries and improve the relevance of the query results that are produced with the least possible no of feedback loops

Input: Bing API key, Target Precision, Query

Mechanism:

Base Algorithms: Stop Word Elimination and Rocchio’s algorithm The query modification method relies on the Rocchio’s algorithm to compute a new query vector after each feedback cycle. The overall process is mentioned below: In the first feedback cycle, the Query string entered by user is used as the input query for the Bing API. The system then gets the top 10 results in JSON format, parses them and prints them for the user to provide feedback. The user marks each displayed result as relevant or not and this decision is mapped to each result. The precision is calculated and if the precision is less than the target, then the system generates a new query by adding 2 words to the original query and rearranging the words in the relevant order .In the subsequent feedback cycles , this modified query is used as input for the Bing call and the process is continued till the desired target precision is achieved.

Class Diagram

alt tag

Listing functionalities of each class

  • QueryExpansionRunner – Responsible for initializing all dependencies. Also triggers QueryInteractor
  • QueryInteractor – Queries Web and fetches top 10 result for the query. Takes user feedback about the results that have been returned and then passes this information to QueryExpander
  • QueryWeb – Queries Web to figure out top 10 results of a query
  • QueryExpander – Receives user feedback from QueryInteractor and uses this information to expand query
  • StopWordsCache – Maintains a cache of all stopwords. Is used by query expander to filter out stop words.

QueryResultInfo Data Model

  • String URL
  • String Title
  • String Summary
  • Boolean isRelevant

query-expansion-service's People

Contributors

grvm20 avatar

Stargazers

Akanksha Gupta avatar Trevor Lazarus avatar Nikita Gupta avatar  avatar

Watchers

James Cloos avatar  avatar

query-expansion-service's Issues

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.