{"id":13557471,"url":"https://github.com/sloev/gutenhaiku","last_synced_at":"2025-04-23T03:48:57.342Z","repository":{"id":57436399,"uuid":"247369362","full_name":"sloev/gutenhaiku","owner":"sloev","description":"Guten Haiku extracts Haiku poems from text","archived":false,"fork":false,"pushed_at":"2021-01-16T10:46:27.000Z","size":784,"stargazers_count":48,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T03:48:53.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sloev.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-03-14T23:29:22.000Z","updated_at":"2022-11-08T12:29:32.000Z","dependencies_parsed_at":"2022-09-06T03:11:45.547Z","dependency_job_id":null,"html_url":"https://github.com/sloev/gutenhaiku","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fgutenhaiku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fgutenhaiku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fgutenhaiku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloev%2Fgutenhaiku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloev","download_url":"https://codeload.github.com/sloev/gutenhaiku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366684,"owners_count":21418768,"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-08-01T12:04:22.369Z","updated_at":"2025-04-23T03:48:57.322Z","avatar_url":"https://github.com/sloev.png","language":"Python","funding_links":["https://www.buymeacoffee.com/sloev"],"categories":["Python","others"],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/sloev/gutenhaiku/raw/master/assets/header.png\" width=\"400\"/\u003e\n\n# Guten Haiku \n\n[![Build Status](https://travis-ci.org/sloev/gutenhaiku.svg?branch=master)](https://travis-ci.org/sloev/gutenhaiku) [![Latest Version](https://img.shields.io/pypi/v/gutenhaiku.svg)](https://pypi.python.org/pypi/gutenhaiku) [![Python Support](https://img.shields.io/pypi/pyversions/gutenhaiku.svg)](https://pypi.python.org/pypi/gutenhaiku)\n\n\u003ca href=\"https://www.buymeacoffee.com/sloev\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-pink.png\" alt=\"Buy Me A Coffee\" height=\"51px\" width=\"217px\"\u003e\u003c/a\u003e\n\nA Commandline tool to mine haiku poems from text\n\n* 80's cli interface with **colors**\n* Works great with gutenberg books thx to a builtin cleaner script from [Peyman Mohseni Kiasari](https://github.com/kiasar/gutenberg_cleaner)\n* Reconstructs punctuation of haikus using [deepcorrect](https://github.com/bedapudi6788/deepcorrect)\n* Appends json haiku's to a file\n\n## Install\n\n```bash\n$ pip install gutenhaiku\n```\n\nThen you need to download the models in cache:\n\n```bash\n$ gutenhaiku setup\n```\n\n## Usage\n\n```bash\n$ gutenhaiku -f frankenstein.txt -a 'mary shelley' -t 'frankenstein' -d '1818-01-01'\n```\n\n\u003ca target=\"_blank\" href=\"https://asciinema.org/a/9dSu3L5D7OzaOg1p5lOXNF8TC\"\u003e\u003cimg src=\"https://github.com/sloev/gutenhaiku/raw/master/assets/gutenhaiku.gif\" width=\"600\"/\u003e\u003c/a\u003e\n\n```bash\nWat?             Guten Haiku lets you extract haiku poems from text\nUsage:           gutenhaiku \\\n                 -f frankenstein.txt \\\n                 -a 'Mary Wollstonecraft Shelley' \\\n                 -t 'frankenstein' \\\n                 -d '1818-01-01'\nOptional params: --commandfile [-cf] a file with comma seperated \n                                     values for f,a,t,d params\n                 --outputfile   [-o] the output file path [default haiku.json\n                 --eighties     [-e] eighties mode [default 1]\n\nAdvanced usage:  gutenhaiku \\\n                 -f frankenstein.txt \\\n                 -a 'Mary Wollstonecraft Shelley' \\\n                 -t 'frankenstein' \\\n                 -d '1818-01-01' \\\n                 -f dracula.txt \\\n                 -a 'Bram Stoker' \\\n                 -t 'dracula' \\\n                 -d '1897-05-26'\n\nsetup:           gutenhaiku setup\n                 downloads AI models\n\n```\n\n### Output format\n\n*example from [assets](assets/frankenstein_haiku.json)*\n```json\n{\n    \"page\": 261,\n    \"word_number\": 65407,\n    \"haiku\": [\n        \"He pointed towards.\",\n        \"The corpse of my wife I rushed.\",\n        \"Towards the window.\"\n    ],\n    \"author\": \"mary shelley\",\n    \"title\": \"frankenstein\",\n    \"date\": \"1818-01-01T00:00:00\"\n}\n```\n\n## Dev\n\nRun tests with \n\n```bash\n$ poetry run nox\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloev%2Fgutenhaiku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloev%2Fgutenhaiku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloev%2Fgutenhaiku/lists"}