Genre Prediction using Lyrics
This notebook demonstrates a machine learning model for predicting the genre of songs based on their lyrics. The model is trained on a dataset containing lyrics from various genres such as Pop, Rock, Hip-Hop, etc.
To run this notebook, you need:
- Python installed on your system
- Jupyter Notebook or Google Colab for running the notebook
- Required Python libraries: pandas, scikit-learn, joblib
Clone this GitHub repository to your local machine:
git clone https://github.com/your_username/your_repository.git
Navigate to the directory where you cloned the repository:
cd path/to/your_repository
Open the Genre_Prediction.ipynb notebook using Jupyter Notebook or Google Colab.
Execute each cell in the notebook sequentially. Make sure to follow any instructions provided in the comments within the code cells.
If required, provide necessary inputs such as uploading the Kaggle API token (kaggle.json) and any other data files needed for training the model.
Run the cells responsible for training the machine learning model and evaluating its accuracy.
After training the model, you can use the provided functions to predict genres for given song lyrics. Example usage is provided in the notebook.
If you wish to save the trained model for future use, follow the instructions provided in the notebook to save the model to a file.
There is a function provided for cleaning song lyrics before prediction. You can use this function to preprocess your lyrics data if needed.