Giter VIP home page Giter VIP logo

ttds's People

Contributors

digital-monad avatar jhowewowe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ttds's Issues

Build indexer script

Create the script to build the index file. Script should generate the term positional inverted index for the song lyric corpus, following a hierarchical format, like the movie quote search group. This should allow us to display actual song lyric lines as results, rather than just the song title/the entirety of the lyrics.

Proposed structure (up for discussion):

term1 : {
    song1 : {
        [(line0, pos2), (line0, pos13), (line12, pos0)]
    },
    song2 : {
        [(line3, pos5), (line10, pos3)]
    }
}

Query Expansion

Use BERT libraries to make script to expand search terms.

Specialised search

Code the specialised search tools using linear merge algorithm

  • #11
  • Phrase search
  • Proximity search

These are grouped into 1 issue so that there is consistency between the 3 algorithms

Build the search query parser

Parse the input search query. Determine which search is required (boolean, BM25 ranked, proximity etc.) and pass it to the relevant search function.

Preprocessing

Create function to apply preprocessing to arbitrary input text. Should include some subset of the following:

  • Case folding
  • Stemming
  • Stopping
  • Tokenisation

Obtain song lyric data

Use the Spotify API and web scrape Genius Lyrics to get song lyric data as per this guide. For now I guess just put it into the format from the guide, i.e. a pandas dataframe (not sure how big this will have to be).

Determine what index format should be stored in the MongoDB

3 collections should be inserted into MongoDB: LyricsMetadata, InvertedIndex, SongsMetaData

SongsMetaData - csv (display frontend)
LyricsMetaData - csv (display frontend)
InvertedIndex - pickle

Missing index_writer.py inserts pickle index file into Pymongo/MongoDB

Transferring CSV Data

Because data collection script is finally completed, we now need to obtain as much data as possible.
This means collecting artists' initials from JSON files and then translated into CSV.

This would be then used to create index files

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.