Code Monkey home page Code Monkey logo

gosuggest's Introduction

gosuggest

Simple Go suggestion engine for films (among other things).

  • data.csv - 5900 film titles with ratings, generated with data_extractor.py from dataset. Only movies with ratings and titles are present.
  • trie is a Golang module which contains a "Fuzzy Trie" - modified Trie data structure which supports finding a "close match" among words, with BFS-like traversal. To rank the matches, it uses length difference, Levenshtein distance and film's score. It has some unit tests.
  • main.go - simple CLI to showcase the functionality of the app.

Example:

./gosuggest
Trie built. Size is: 5828 entries
Input search query:
>Десять негритят
0: Десять негритят
1: Marfa Girl
2: Место на земле
3: 12 Storeys
4: Sudba Cheloveka
Input search query:
>Десять нег
0: Десять негритят
1: 숙명
2: Аэлита
3: Платон
4: Шестой
Input search query:
>Butman
0: Bean
1: Batman
2: 숙명
3: Hitch
4: Laura
Input search query:
>Batman
0: Batman
1: Batman Begins
2: Batman Returns
3: Batman Forever
4: Batman & Robin
Input search query:
>Superman
0: Superman
1: Superman vs. The Elite
2: Bean
3: Oblivion
4: Seven

gosuggest's People

Contributors

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