Alina-enni / lingdiggers

Project for the Building NLP Applications course
0 stars 0 forks source link

lingdiggers

Project for the Building NLP Applications course

We have created a search engine that searches through a (small) song lyrics database and presents all occurrences of a query along with the artist and song name. Results are shortened to show only the query in context (and not the whole song). Our engine supports single word and multi-word queries. With single word queries it looks for an occurrence anywhere within a word; e.g. if a query is 'way', our engine searches for words such as 'way', 'ways', 'away' etc. With multi-word queries the engine searches only for the specific words in the query; e.g. 'fix you' shows results with 'fix' and 'you'. As we are using the tf-idf method, the results in both cases are ranked and presented in descending order.

The web UI features Bootstrap and Jinja2 to ensure that the search interface looks nice to the user. When no search query exists, the user sees a welcome message, and when no matches for the query are found, the user sees a special message.

To use the search engine, 3 files are needed:

The following libraries and functions are required for the flaskdemo.py file: