{"id":17423009,"url":"https://github.com/ggiuffre/tf-lyrics","last_synced_at":"2025-04-16T00:11:12.955Z","repository":{"id":57474852,"uuid":"243620712","full_name":"ggiuffre/tf-lyrics","owner":"ggiuffre","description":"Generate lyrics with TensorFlow and the Genius API","archived":false,"fork":false,"pushed_at":"2020-04-06T15:57:37.000Z","size":983,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T06:35:04.699Z","etag":null,"topics":["data-pipeline","genius-api","lyrics","tensorflow","text-generation"],"latest_commit_sha":null,"homepage":"https://ggiuffre.github.io/tf-lyrics/","language":"Python","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/ggiuffre.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":"2020-02-27T21:29:19.000Z","updated_at":"2024-04-08T11:14:56.000Z","dependencies_parsed_at":"2022-09-10T04:04:47.393Z","dependency_job_id":null,"html_url":"https://github.com/ggiuffre/tf-lyrics","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiuffre%2Ftf-lyrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiuffre%2Ftf-lyrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiuffre%2Ftf-lyrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiuffre%2Ftf-lyrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggiuffre","download_url":"https://codeload.github.com/ggiuffre/tf-lyrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173086,"owners_count":21224483,"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":["data-pipeline","genius-api","lyrics","tensorflow","text-generation"],"created_at":"2024-10-17T04:03:58.009Z","updated_at":"2025-04-16T00:11:12.938Z","avatar_url":"https://github.com/ggiuffre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tflyrics\n\u003ca href=\"https://codeclimate.com/github/ggiuffre/tf-lyrics/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/b0845d2d158fc06c1677/maintainability\" /\u003e\u003c/a\u003e\n\nGenerate intriguing lyrics with TensorFlow and an internet connection.\n\n`tflyrics` is a Python package that allows you to easily select lyrics of\nspecific artists from [genius.com](https://genius.com/), and train a deep\nneural network to generate text that sounds similar to those lyrics. This\nwork was inspired from [The Unreasonable Effectiveness of Recurrent Neural\nNetworks](http://karpathy.github.io/2015/05/21/rnn-effectiveness/) and\n[Text generation with an\nRNN](https://www.tensorflow.org/tutorials/text/text_generation).\n\n## Usage\n\n```python\nfrom tflyrics import Poet, LyricsGenerator\n\nartists = ['Bob Dylan', 'Tim Buckley', 'The Beatles']\ngen = LyricsGenerator(artists, per_artist=5)\n\np = Poet()\np.train_on(gen, n_epochs=10)\npoem = p.generate(start_string='Hey ', n_gen_chars=1000)\nprint(poem)\n```\n\nA `LyricsGenerator` object makes it easy for you to create a data pipeline\nthat feeds from the Genius API directly into a recurrent neural network; a\n`Poet` object is a wrapper around a recurrent neural network.\n\nYou can find another, more data-intensive example on\n[Google Colab](https://colab.research.google.com/drive/1OIYUbRawG5YEuQMunrR6Ox8S2UVI_Q6E).\nThis example also shows that `LyricsGenerator` doesn't need to wait for all\nsongs to be downloaded before providing the first training examples.\n\nNote that the Genius API requires you to have an **access token**. Without\nthat, `tflyrics` won't be able to get lyrics for you. You can get an access\ntoken for free at [docs.genius.com](https://docs.genius.com/). Once you have\nit you can either pass it under the `token` argument of a `LyricsGenerator`\nconstructor, or store it as en environment variable (with `export\nGENIUS_ACCESS_TOKEN='\u003cyour token here\u003e'`). `tflyrics` will detect this\nenvironment variable automatically, if it exists.\n\n## Installation\n\nYou can install this package with `pip`:\n\n```shell\npip install -q tflyrics\n```\n\nOr, if you want the latest (possibly not stable) version, you can install\n`tflyrics` from source with:\n\n```shell\npip install -e git+https://github.com/ggiuffre/tf-lyrics.git#egg=tflyrics\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggiuffre%2Ftf-lyrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggiuffre%2Ftf-lyrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggiuffre%2Ftf-lyrics/lists"}