{"id":21886541,"url":"https://github.com/tantara/naver-ai-hackathon-2018","last_synced_at":"2026-04-16T04:32:54.385Z","repository":{"id":145648883,"uuid":"131488791","full_name":"tantara/naver-ai-hackathon-2018","owner":"tantara","description":"Ranked 5th over 200 teams in Naver AI Hackathon 2018","archived":false,"fork":false,"pushed_at":"2018-04-30T11:16:13.000Z","size":381,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T01:45:12.684Z","etag":null,"topics":["hackathon","lstm","movie-prediction","naver"],"latest_commit_sha":null,"homepage":"https://github.com/naver/ai-hackathon-2018","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/tantara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-04-29T11:27:18.000Z","updated_at":"2023-02-23T19:20:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"645ab178-b7f0-4f21-aec2-3e64da70d6ed","html_url":"https://github.com/tantara/naver-ai-hackathon-2018","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tantara/naver-ai-hackathon-2018","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantara%2Fnaver-ai-hackathon-2018","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantara%2Fnaver-ai-hackathon-2018/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantara%2Fnaver-ai-hackathon-2018/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantara%2Fnaver-ai-hackathon-2018/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tantara","download_url":"https://codeload.github.com/tantara/naver-ai-hackathon-2018/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tantara%2Fnaver-ai-hackathon-2018/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31871631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hackathon","lstm","movie-prediction","naver"],"created_at":"2024-11-28T10:36:26.370Z","updated_at":"2026-04-16T04:32:54.353Z","avatar_url":"https://github.com/tantara.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Naver AI Hackathon 2018 - Movie Prediction\n\nI participated in [Naver AI Hackathon 2018](https://github.com/naver/ai-hackathon-2018) and **ranked 5th(over 200 teams, MSE: 2.76661)** as an inidivisual participant(Team: tantara).\n\n#### Final Leaderboard\n\n![learderboard](docs/learderboard.png)\n\n\n\n## Features\n\n- Fully dockerized environments\n- Tokenization with `Twitter` POS Tagger\n- Stacked LSTM\n- Bidirectional LSTM\n- CNN + LSTM(but not used)\n\n\n\n\n\n## How to Use\n\n#### Download pre-trained vocabulary\n\n```bash\n$ wget https://dl.dropbox.com/s/l2cct7xxi94og2p/idx2word_final.pkl -O movie-prediction/idx2word_final.pkl\n```\n\n#### on Docker\n\nInstall `docker` first, and run commands as follows:\n\n```bash\n$ sh build.sh \u0026\u0026 sh run.sh\n$ cd movie-predication\n$ python lstm.py --epochs 30 --lr 0.001 --num_layers 4 --embedding 300 --hidden_dim 500 --batch 4000 --dr_embed 0.5\n```\n\n\n\n#### on NSML\n\nLogin with `nsml` first, and run commands as follows:\n\n````bash\n$ cd movie-prediction\n$ nsml run -d movie_final -e lstm.py -a \"--epochs 30 --lr 0.001 --num_layers 4 --embedding 300 --hidden_dim 500 --batch 4000 --dr_embed 0.5\"\n````\n\n\n\n## Hyperparameters\n\n|           Name            |   Value    |                            |\n| :-----------------------: | :--------: | -------------------------- |\n|      Training Epoch       |     30     | --epochs                   |\n|       Learning Rate       |   0.001    | --lr                       |\n|        Batch Size         |    4000    | --batch, *It depends on GPU* |\n|       Drouout Rate        |    0.5     | --dropout_rate, --dr_embed   |\n|     the size of vocab     |  110,000   | *Pretrained*               |\n|   the number of tokens    |  Up to 20  | --strmaxlen, *Zero padding* |\n|      Word Embedding       |    300     | --embedding                 |\n| the number of LSTM layers |     4      | --num_layers                |\n|    LSTM's hidden size     |    300     | --hidden                    |\n|       Bidirectional       | True/False | --bi, *Optional*            |\n|            CNN            | True/False | --cnn, *Not Used*           |\n\n## Results\n\n* tantara/movie_final/24/xx: Stacked LSTM\n  * Top Score: 2.77174\n* tantara/movie_final/32/xx: Stacked LSTM + Bidirectional\n  * **Top Score: 2.76661**\n\n![results](docs/results.png)\n\n## Reference\n\n1. [Naver AI's Official Baseline](https://github.com/naver/ai-hackathon-2018/tree/master/missions/examples/movie-review)\n2. [jiangqy/LSTM-Classification-Pytorch](https://github.com/jiangqy/LSTM-Classification-Pytorch)\n3. [한국어와 NLTK, Gensim의 만남](https://www.slideshare.net/lucypark/nltk-gensim)\n\n## License\n\n```\nCopyright 2018 tantara.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\nCONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\nOR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftantara%2Fnaver-ai-hackathon-2018","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftantara%2Fnaver-ai-hackathon-2018","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftantara%2Fnaver-ai-hackathon-2018/lists"}