{"id":22357246,"url":"https://github.com/mdh266/jfkspeechwriter","last_synced_at":"2026-05-06T07:35:32.347Z","repository":{"id":93022793,"uuid":"574286897","full_name":"mdh266/JFKSpeechWriter","owner":"mdh266","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-31T02:35:43.000Z","size":6067,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T14:43:17.455Z","etag":null,"topics":["data-science","google-cloud","keras","machine-learning","natural-language-processing","nlp","recurrent-neural-networks","tensorflow2"],"latest_commit_sha":null,"homepage":"","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/mdh266.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-05T00:54:51.000Z","updated_at":"2023-04-07T12:03:29.000Z","dependencies_parsed_at":"2024-01-31T03:39:53.104Z","dependency_job_id":"941f1021-b05a-40cd-8428-5f1181046c43","html_url":"https://github.com/mdh266/JFKSpeechWriter","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"8f27c54bfddd8ad053d2126098c9c2793fc00abb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdh266%2FJFKSpeechWriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdh266%2FJFKSpeechWriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdh266%2FJFKSpeechWriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdh266%2FJFKSpeechWriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdh266","download_url":"https://codeload.github.com/mdh266/JFKSpeechWriter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245659198,"owners_count":20651555,"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-science","google-cloud","keras","machine-learning","natural-language-processing","nlp","recurrent-neural-networks","tensorflow2"],"created_at":"2024-12-04T14:13:41.919Z","updated_at":"2026-05-06T07:35:32.308Z","avatar_url":"https://github.com/mdh266.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creating An AI Powered JFK Speech Writer\n-----------------\n\n## Part 1 \nIn this short post I went over how to scrape the President John F. Kennedy Library's website to create a collection of JFK speeches. I covered how to do this using [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) and upload them as text files to [Google Cloud Storage](https://cloud.google.com/storage). One thing I could have done is to use an asynchronous HTTP client [AIOHTTP](https://docs.aiohttp.org/en/stable/) to read and write using asynchronous I/O.\n\n## Part 2\nIn this blog post I covered how to create a generative text model using bi-directional [gated recurrent unit (GRU)](https://en.wikipedia.org/wiki/Gated_recurrent_unit) that is trained on speeches made by President John F. Kennedy. The model was built in [Keras](https://keras.io/) using [TensorFlow](https://www.tensorflow.org/) as a back-end and I covered how to use this model to generate text based off an input string. \n\nThe GRU model is a specific type of [Recurrent Neural Network (RNN)](https://en.wikipedia.org/wiki/Recurrent_neural_network) and models sequences. RNNs were quite popular for Natural Language Processing until around 2017/2018. More recently, Recurrent Neural Networks have fallen out of popularity for NLP tasks as \u003ca href=\"https://en.wikipedia.org/wiki/Transformer_(machine_learning)\"\u003eTransformer\u003c/a\u003e and \u003ca href=\"https://en.wikipedia.org/wiki/Attention_(machine_learning)\"\u003eAttention\u003c/a\u003e based methods have shown substantially better performance. Using transformers for generating text that is meant to sound like JFK would be a natural next step and will be a follow up for a future blog post!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdh266%2Fjfkspeechwriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdh266%2Fjfkspeechwriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdh266%2Fjfkspeechwriter/lists"}