Code Monkey home page Code Monkey logo

dd2476-ir-project's Introduction

DD2476 Project

Dataset

The search engine uses this dataset from kaggle as its basis. It consists of ~7700 netflix titles.

Environment

The application requires elasticsearch to be running. For simplicity the movie dataset can be loaded through Kibana. Thus, make sure you have the following setup:

elasticsearch (we used version 7.12.1)
kibana (we used version 7.12.1)

Loading the dataset

In order to load the dataset into elasticsearch, do the following:

  1. Open Kibana
  2. Press Upload a file on the front page
  3. Select the csv file
  4. Press import
  5. Name the index netflix and press import
  6. It will say that some documents could not be imported, don't worry about that

Now the index is ready to be queried from the user interface

Dependencies

The application is built using python 3.8 and it requires the following dependecies to run:

tkinter (installation instructions below)
tinydb (pip install tinydb)

Installing tkinter

Instructions here

Database

The project uses tinydb which stores its data in json file. We store the user profiles there and feel free to use our pre-made users or create one yourself. Either way the code assumes the database is located at ./db/users.json.

Running the interface

When all dependencies are installed, the application can be run with the following command:

python main.py

If you want to start with an empty user intead of using the ones we've created run the following command:

rm ./db/users.json && python add_person.py

The user interface

The user interface is fairly simple, at the top you will find a list of the users and whenevery you run a query or select a title a user has to be selected. Below that list is the input box, where you can enter a query and search. Below the input are the results and at the bottom of the page is the search history and previous selections made by the user.

dd2476-ir-project's People

Contributors

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