Coder Social home page Coder Social logo

search-engine's Introduction

Search Engine

Program is oriented towards information retrieval and recreating the mechanisms behind early web browsing. Using extensive data analysis and tf-idf to get the most relevant document from search query.

Source files and test files can be found within the repository.

Usage

Source files are in the src/ directory. This contains the .h and .cpp files.

To compile into a executable, Search. Run make in the src/ directory. Must have 5 arguments, i.e.,

$ ./Search query_file library_file lowest_reading_level max_reading_level

Output: Document that is most relevant to the query_file

Running the tests

Small and Large test cases are found in the test_cases/ directory.

Automated run script will execute multiple times to ensure validity and gather timing information on documents.

In either test_cases/small/ or test_cases/large/ run the script to compile and execute program.

$ cd test_cases/small/
$ chmod +x run
$ ./run
Running Search ...
 [      49]  [01]  tamingshrew
 [      49]  [02]  tamingshrew
 [      36]  [03]  tamingshrew
 [      46]  [04]  tamingshrew
 [      42]  [05]  tamingshrew
 [      40]  [06]  tamingshrew
 [      49]  [07]  tamingshrew
 [      48]  [08]  tamingshrew
 [      44]  [09]  tamingshrew
 [      39]  [10]  tamingshrew
Average Time: 44 milliseconds

Left column is the average time in milliseconds for each iteration and the output file on the far right.

Authors

  • Jason Stock - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

search-engine's People

Contributors

stockeh avatar

Stargazers

 avatar

search-engine'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.