Giter Site home page Giter Site logo

search-engine's Introduction

Search-Engine

ISNA News Search Engine is an information retrieval project implemented on the ISNA news collected in 2021. This project is implemented in two different sections:

  1. Simple Indexing
  2. Vector space and tf-idf ranked based retrieval

Simple Indexing

In this section, the documents are indexed using an inverted index. When a client enters a query, the engine searches in the index and retrieves the documents containing all the words in the query by applying an intersection on the results.

This part of the project includes the following:

  • Document preprocessing

    • Normalization
    • Extracting Tokens
    • Stemming
    • Removing Stopwordswords
  • Positional index construction

  • Query processing
    Search results for:

    • Common Normal Queries
    • Boolean Queries (NOT)
    • Phrase Queries
    • Complex Combination of All Types of Queries
    • Rare Queries
  • Checking Heaps' law and Zipf's law before and after stemming and eliminating stop words

Indexing using vector space and tf-idf

This is a more advanced search engine that leverages the cosine similarity and vector spaces for better retrieval. The vectors for each of the documents in the dataset are created using the tf-idf calculations. The formula in depicted bellow.
img
To reduce memory usage index elimination was applied. Moreover, for faster retrieval of the documents a champion list was used for each of the elemenets in the inverted index. The score of the relevance of each of the documents with a given query is calculated using the cosine similarity function.
img

This part of the project includes the following steps:

  • tf–idf weighting
  • Ranking documents based on cosine similarity
  • Speeding cosine computation by pruning
    • Using champion list

search-engine's People

Contributors

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