Giter Site home page Giter Site logo

imperium's People

Contributors

captain-pool avatar geekboysupreme avatar

Watchers

 avatar  avatar  avatar

imperium's Issues

Similarity Search

Overview:

  • Split the sentence to words.
  • return URL for expression.

Tasks: (similarity metric -> 0 for perfect match)

  • Precompute maximum length of phrase.
  • greedily search for word-combination (max: max-phrase-length) having minimum distance from the centroid.
  • each time vectorize the combination.
  • find the closest semantically closest word of the new formed phrase / word.
  • For proper nouns, check if present in dictionary. else, fingerspell.

NOTE: Don't count the stop words.

API Design Overview:

  • class SimSearch: properties-> vectorizer, clusterDB, dictVectDB, MAX_LENGTH_PHRASE (from config)

  • simSearch.splitTokens(sentence): iterates over each consecutive word combination and keeps track of minimum distance from the center. stop at MAX_PHRASE_LENGTH / ProperNoun reached, which ever earlier.

  • simSearch.tagPOS(word): Helper function for pos tagging.

  • simSearch.queryVideoClip(token): Query DB to obtain video clip from token.

  • simSearch.fingerspell(character_token): helper function to fingerspell mp4 of the character_token.

  • simSearch.query(setence): Stitch everything together and return list of video links. (in-order)

NOTE: Can be made faster by creating parallel jobs to work on splices of length MAX_LENGTH_PHRASE. if stopped before MAX_LENGTH_PHRASE, can be kept in a Queue with a position index in the token list.

Video Scraping

  • scraper to extract video URLs
  • string search to extract query words from URL
  • Redis integrator.

NOTE: Redis is used for fast (Key, Value) storage and extraction, where Key = Word to search for, Value = URL for Video

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.