Code Monkey home page Code Monkey logo

tansaku's Introduction

Tansaku

Building a search engine from scratch using JavaScript and some math.

Installation

Clone and install everything.

$ git clone https://github.com/gmittal/tansaku
$ cd tansaku
$ [sudo] npm install

Crawling for Data

$ node crawl

Searching

$ node app "query"

tansaku's People

Watchers

 avatar  avatar

tansaku's Issues

Add lemmatization

Lemmatize the words in both the query vector and the document vectors to produce better results.

Remove linear growth search algorithm

The ultimate ranking tool uses vector cosine similarity, but in order to get those results, the program currently looks through every single document (bad bad bad). Use a function that has a better order of growth. It would be pretty simple to add a search function that has a logarithmic order of growth.

Add tf-idf weightings for better relevancy

This would improve results drastically. Would have to account for fillers/stop words ("a", "this", "the"), which appear a lot but aren't actually that useful without removing them completely (e.g. "to be or not to be" is a relevant query composed of only stop words).

Fix memory leaks

Something is getting stored in RAM instead of on the disk during the crawl process.

This keeps happening:

(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit

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.