{"id":19282283,"url":"https://github.com/jaybfn/text_classification","last_synced_at":"2025-06-18T13:36:31.633Z","repository":{"id":45224796,"uuid":"452861730","full_name":"jaybfn/Text_Classification","owner":"jaybfn","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-19T06:55:04.000Z","size":1884,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T17:12:51.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaybfn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-27T22:11:41.000Z","updated_at":"2022-01-27T22:14:01.000Z","dependencies_parsed_at":"2022-07-25T02:02:10.103Z","dependency_job_id":null,"html_url":"https://github.com/jaybfn/Text_Classification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaybfn%2FText_Classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaybfn%2FText_Classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaybfn%2FText_Classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaybfn%2FText_Classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaybfn","download_url":"https://codeload.github.com/jaybfn/Text_Classification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240386530,"owners_count":19793193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T21:26:03.137Z","updated_at":"2025-02-23T22:21:29.310Z","avatar_url":"https://github.com/jaybfn.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text_Classification\n# ______________________________________________________________\n# Classifying Artist's lyrics using Supervised Machine Learning\n![alt picture](https://github.com/jaybfn/Text_Classification/blob/main/Flowchart.jpg)\n# Steps:\n#### 1. In this project I am extracting lyrics of 6 artists ['Eminem','Jay-Z','Justin-Timberlake','50-Cent','Bob-Marley','Michael-Jackson'] from lyrics.com (# of artist can be          any length) and classify using Supervised Machine Learning Models.\n\n#### 2. In this project I have two python scripts ‘cli_get_lyrics.py’and‘Lyrics_Classification_RFC_25Dec2021’\n\n#### 3. Libraries used:\n  #### 1. cli_get_lyrics.py (web scraping protocols)\n  * Requests\n  * re\n  * os\n  * pandas\n  * argparser\n  * sys\n  * BeautifulSoup\n\n  #### 2. Lyrics_Classification_RFC_25Dec2021.ipynb (ML model)\n  * Pandas\n  * Numpy\n  * Sklearn\n  * Nltk\n  * String\n  * re\n  * os\n\n#### 4. For scraping lyrics please run 'cli_get_lyrics.py' on your command line interface.\n\n#### Eg: type the below line on your command line interfaces with path where your python file is located.\n\n  * python cli_get_lyrics.py 6 Eminem Jay-Z Justin-Timeberlake 50-Cent Bob-Marley Michael Jackson\n\n  * If you just run the file without giving any input arguments, then the code would function with its default values stored\n  default val: number of artist is \"1\" and name of the artist is \"Akon\".\n\n  * the file 'cli_get_lyrics.py' required two input arguments to function.\n  * number of artists to be scrapped (in my case I have 6)\n  * name of the artists as mentioned on the lyrics.com (Eminem Jay-Z Justin-Timeberlake 50-Cent Bob-Marley Michael Jackson)\n\n  * Once scrapped, the program will store all the lyrics as .txt file in individual folder with artist names\n  * eg: I scrapped 100 songs from Akon, so there will be a folder with name Akon and 100 lyrics stored in it.\n\n  * the program takes cares of all the duplicate file name and repeated lyrics.\n\n  * to abort the program in between press ctrl + c to interrupt.\n\n#### 5. Once all the lyrics are scrapped! Next, open Lyrics_Classification_RFC_25Dec2021.ipynb\n\n  * this code required two input arguments:\n  * folders = ['Eminem','Jay-Z','Justin-Timberlake','50-Cent','Bob-Marley','Michael-Jackson']\n  * base_url = r\"Paste your file path here\"\n\n#### 6. It is important to know that this model is optimized for the above artists only. Feel free to optimize while using different artists.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaybfn%2Ftext_classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaybfn%2Ftext_classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaybfn%2Ftext_classification/lists"}