Code Monkey home page Code Monkey logo

finalcapstone's Introduction

finalCapstone

Description

Table of contents

Installation

  1. Make sure you have Python installed on your system. You can download Python from the official website: Python.org.

  2. Install the required library, spacy, by running the following command in your command prompt or terminal:

    pip install spacy
    
  3. Download the English language model for spaCy by executing the following command:

    python -m spacy download en_core_web_md
    
  4. Once the installation is complete, you can now proceed to run the script.

Usage

  1. Ensure that you have the following files in the same directory:

    • movies.txt (the file containing movie titles and descriptions)
    • The script file with the provided code (e.g., watch_next.py)
  2. Open the script file (watch_next.py) in a text editor.

  3. In the script, you can customize the target movie by modifying the following variables:

    TARGET_MOVIE_TITLE = "Planet Hulk"
    TARGET_MOVIE_DESCRIPTION = "Will he save their world or destroy it? " \
                "When the Hulk becomes too dangerous for the Earth, " \
                "the Illuminati trick Hulk into a shuttle and launch him " \
                "into spaces to a planet where the Hulk can live in peace. " \
                "Unfortunately, Hulk lands on the planet Sakkar where he is sold " \
                "into slavery and trained as a gladiator."

    Update TARGET_MOVIE_TITLE and TARGET_MOVIE_DESCRIPTION with the desired values.

  4. Save the changes made to the script file.

  5. Open a command prompt or terminal and navigate to the directory where the script file is located.

  6. Run the script by executing the following command:

    python watch_next.py
    

    The script will read the movie descriptions from the movies.txt file, compare them to the target movie description, and recommend the most similar movie title to watch next based on the similarity indexes.

  7. The recommended movie title will be displayed in the console output.

Features

  • Reads a file (movies.txt) containing movie titles and descriptions.
  • Recommends a movie title to watch next based on the similarity between the target movie description and the provided movie descriptions.
  • Uses the spacy library for natural language processing (NLP) and similarity calculation.
  • Allows customization of the target movie by modifying the TARGET_MOVIE_TITLE and TARGET_MOVIE_DESCRIPTION variables in the script.

Contributing

Contributions are welcome! If you have any suggestions or improvements, please create an issue or submit a pull request.

Licence

This project is licensed under the MIT Licence. See the LICENSE file for more details.

Contact

If you have any questions or want to reach out, feel free to contact Georgios Kakavelakis at [email protected].

finalcapstone's People

Contributors

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