{"id":20071118,"url":"https://github.com/dlpbc/gru-language-modeling","last_synced_at":"2026-05-12T18:11:43.233Z","repository":{"id":168989839,"uuid":"106126829","full_name":"dlpbc/gru-language-modeling","owner":"dlpbc","description":"Language modeling using nairaland featured links as dataset","archived":false,"fork":false,"pushed_at":"2017-10-07T22:00:56.000Z","size":9170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T23:47:39.133Z","etag":null,"topics":["gru","language-modeling","nairaland","rnn","theano"],"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/dlpbc.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,"publiccode":null,"codemeta":null}},"created_at":"2017-10-07T20:03:01.000Z","updated_at":"2017-10-07T21:11:22.000Z","dependencies_parsed_at":"2023-05-28T11:30:54.082Z","dependency_job_id":null,"html_url":"https://github.com/dlpbc/gru-language-modeling","commit_stats":null,"previous_names":["dlpbc/gru-language-modeling"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlpbc%2Fgru-language-modeling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlpbc%2Fgru-language-modeling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlpbc%2Fgru-language-modeling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlpbc%2Fgru-language-modeling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlpbc","download_url":"https://codeload.github.com/dlpbc/gru-language-modeling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241502792,"owners_count":19972956,"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":["gru","language-modeling","nairaland","rnn","theano"],"created_at":"2024-11-13T14:27:30.446Z","updated_at":"2025-11-26T18:03:55.043Z","avatar_url":"https://github.com/dlpbc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Language Modeling on Locally curated dataset\nAn interesting project that entails training neural net language model on a locally curated dataset. See below or [here](https://github.com/dlpbc/datasets/blob/master/README.md#nairaland-featured-links) for description of the dataset.\n\n## Dataset - 5k featured links on nairaland\n- 5000 sentences\n- One sentence per line\n- Each sentence is the title of a featured link thread on [nairaland](http://nairaland.com)\n\n## Network Description\n2 Layer Gated Recurrent Units (GRU). A slightly modified version of what was implemented [here](https://github.com/dennybritz/rnn-tutorial-gru-lstm). \n\n## Network Configuration\n- 500 units word embedding layer  \n- 400 gru units per gru layer\n-vocabulary size: 500\n- initial learning rate: 0.008 (annealed over epochs down to 0.00001)\n- number of epochs: 115\n\n## Network Performance\n- 0.92 loss after 115 epochs (Pre-trained model located in **trained_model_param** directory.\n\n## Usage\n- Train Model\n```\npython train_gru_rnn.py\n```\n\n- Generate sentences (featured links) from pre-trained model\n```\npython sentence_generator.py\n```\n\n## Some Sample Sentences (featured links) Generated by trained model\n- what to do during asuu strike\n- nigeria vs cameroon : who is your man of the strike ?\n- see new fayose for president 2019 today\n- a nairalander 's pre-wedding photos\n- how much do you members ways things ?\n- do you has caught phone ?\n- who is a his son ?\n- quit to what youths to buhari , in they about\n- president buhari receives state 2017\n- 5 things you need to know when building a new home\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlpbc%2Fgru-language-modeling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlpbc%2Fgru-language-modeling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlpbc%2Fgru-language-modeling/lists"}