GithubHelp home page GithubHelp logo

gauravj3 / my_search Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.16 MB

Web App to search for given words from tsv file, Website can be accessed here ->

Home Page: https://g-search.herokuapp.com/

Python 90.58% HTML 9.42%

my_search's Introduction

My Search

A HTTP service that provides an endpoint for fuzzy search / autocomplete of English words.

*A Django based Word Search WebApp *This WebApp basically renders a search box on browser where the user can type in a word as an input to search that word in a *dataset containing 333,333 English words and the frequency of their usage in some corpus.

Requirements.txt

*Run pip install -r requirements.txt (Python 2), or pip3 install -r requirements.txt (Python 3)

Front-end

HTML template of Search Box with a Search button.

API End Points

GET http://localhost:8000 :- *This endpoint renders a search box in the browser.

*When input is the(partial) word that the user has typed so far. For example, if the user is looking up procrastination, the service might receive this sequence of requests:

GET http://localhost:8000/search/?term=proc

GET http://localhost:8000/search/?term=proca

GET http://localhost:8000/search/?term=procas

GET http://localhost:8000/search/?term=procasti and based on this search behavior, suggestions for searching words will show up in the browser.

The response is a JSON array containing upto 25 results, ranked by some criteria (see below):- Constraints

  1. Matches can occur anywhere in the string, not just at the beginning. For example, eryx should match archaeopteryx (among others).
  2. The ranking of results should satisfy the following: a. We assume that the user is typing the beginning of the word. Thus, matches at the start of a word should be ranked higher. For example, for the input pract, the result practical should be ranked higher than impractical. b. Common words (those with a higher usage count) should rank higher than rare words. c. Short words should rank higher than long words. For example, given the input environ, the result environment should rank higher than environmentalism. i. As a corollary to the above, an exact match should always be ranked as the first result.

my_search's People

Contributors

dependabot[bot] avatar gauravj3 avatar

Watchers

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