Code Monkey home page Code Monkey logo

booleaninforetreival's Introduction

Tolerant Boolean Information Retreival System

This program is an implementation of a tolerant boolean information retreival system. Usage: Run the Code.py file. This is a menu driven interactive program which allows users to enter queries. Please note that the documents which need to be searched should be in the same folder/directory as Code.py.

Functions and their uses:

InvertedIndex(documentList) Functions that takes a dictionary named documentList (which has key value pairs of the form { documentID : documentName } ), and returns and Inverted Index table for all the words in the corpus as well as a Bi Word Inverted index table. ex: if documentList = {1:'FirstDocument'} then InvertedIndex(documentList) returns { 'This' : [1], 'is' : [1], 'the' : [1], 'first' : [1], 'document' : [1] }

QueryPreProccess(rawQuery) Function that takes in the raw query and returns a preprocessed query string, after implementing stop word removal, tokenization, lemmatization, and spelling correction. ex: QueryPreProccess("c*s to and california or brutus") returns "c*s and calphurnia or brutus"

ParseBoolean(PreprocessedQueryString, invertedIndexTable) Function that takes the Preprocessed Query String and the Inverted Index Table, performs the search and returns a list of all the Document IDs that match our query. ex: ParseBoolean("c*s and calphurnia or brutus", invertedIndexTable) returns [3, 5, 39, 7, 11, 14, 15, 19, 30]

booleaninforetreival's People

Contributors

prithvihegde avatar

Stargazers

 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.