{"id":24922675,"url":"https://github.com/juliendoutre/baudelaire","last_synced_at":"2026-05-17T02:33:23.359Z","repository":{"id":37061011,"uuid":"224915651","full_name":"juliendoutre/baudelaire","owner":"juliendoutre","description":"A text generator trained over Baudelaire's poems.","archived":false,"fork":false,"pushed_at":"2023-05-22T22:34:18.000Z","size":50117,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T11:32:51.209Z","etag":null,"topics":["baudelaire-poems","nlp","python","tensorflow"],"latest_commit_sha":null,"homepage":"","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/juliendoutre.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":"2019-11-29T20:04:18.000Z","updated_at":"2020-04-17T13:46:09.000Z","dependencies_parsed_at":"2023-01-20T12:33:35.428Z","dependency_job_id":null,"html_url":"https://github.com/juliendoutre/baudelaire","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/juliendoutre%2Fbaudelaire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendoutre%2Fbaudelaire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendoutre%2Fbaudelaire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendoutre%2Fbaudelaire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliendoutre","download_url":"https://codeload.github.com/juliendoutre/baudelaire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017726,"owners_count":20710240,"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":["baudelaire-poems","nlp","python","tensorflow"],"created_at":"2025-02-02T11:33:04.840Z","updated_at":"2025-10-24T23:38:42.023Z","avatar_url":"https://github.com/juliendoutre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baudelaire 📝\n\nA text generator trained over Baudelaire's poems.\n\n## Install the package\n\nSimply run:\n```shell\npip3 install baudelaire\n```\n\n## Usage\n\n```shell\nbaudelaire --help\nbaudelaire train --epochs 100 --batch_size 50 -o weights.h5\nbaudelaire write --sequences 10 -o poem.txt -i weights.h5\n```\n\n## Set the environment\n\nCreate a virtualenv:\n```shell\npython3 -m venv venv\n```\n\nActivate it:\n```shell\n. venv/bin/activate\n```\n\nAnd install the required packages:\n```shell\npip3 install -r requirements.txt\n```\n\n## Get the dataset\n\nI fetched Baudelaire's poems from this [website](https://www.poesie-francaise.fr/poemes-charles-baudelaire/) using [scrapy](https://scrapy.org/).\n\nRun\n```shell\nscrapy runspider scraping/poems.py -t json -o poems.json\n```\n\nto save the poems contents and a few metadata in a `poems.json` file.\n\n## Dataset description\n\nYou can find some metadata about the poems and the collections they are categorized in, in `data/stats.json`.\nThis json was generated with the `scraping/analyzer.py` script.\n\n## Bibliography\n\n- https://www.digitalocean.com/community/tutorials/how-to-crawl-a-web-page-with-scrapy-and-python-3\n- https://www.analyticsvidhya.com/blog/2018/03/text-generation-using-python-nlp/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendoutre%2Fbaudelaire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliendoutre%2Fbaudelaire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendoutre%2Fbaudelaire/lists"}