{"id":22118724,"url":"https://github.com/pcyin/pytorch_nmt","last_synced_at":"2025-07-25T12:32:22.511Z","repository":{"id":63374492,"uuid":"87968450","full_name":"pcyin/pytorch_nmt","owner":"pcyin","description":"A neural machine translation model in PyTorch","archived":false,"fork":false,"pushed_at":"2019-07-03T20:11:21.000Z","size":17258,"stargazers_count":118,"open_issues_count":0,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-16T04:10:58.377Z","etag":null,"topics":["deep-learning","machine-learning","neural-machine-translation","pytorch"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcyin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-11T18:51:26.000Z","updated_at":"2024-11-12T04:49:43.000Z","dependencies_parsed_at":"2022-11-17T20:00:33.574Z","dependency_job_id":null,"html_url":"https://github.com/pcyin/pytorch_nmt","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/pcyin%2Fpytorch_nmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcyin%2Fpytorch_nmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcyin%2Fpytorch_nmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcyin%2Fpytorch_nmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcyin","download_url":"https://codeload.github.com/pcyin/pytorch_nmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227574240,"owners_count":17788145,"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":["deep-learning","machine-learning","neural-machine-translation","pytorch"],"created_at":"2024-12-01T13:56:00.606Z","updated_at":"2024-12-01T13:56:01.425Z","avatar_url":"https://github.com/pcyin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**A neural machine translation model written in pytorch.**\n\n**For a up-to-date PyTorch implementation of basic vanilla attentional NMT, please refer to [this repo](https://github.com/pcyin/pytorch_basic_nmt)**\n\nWith 256-dimensional LSTM hidden size, it achieves a training speed of 14000 words/sec and 26.9 BLEU score on the IWSLT 2014 Germen-English dataset (Ranzato et al., 2015).\n\n## File Structure\n\n* `nmt.py`: main file\n* `vocab.py`: script used to generate `.bin` vocabulary file from parallel corpus\n* `util.py`: script containing helper functions\n* `run_raml_exp.py|test_raml_models.py`: helper scripts to train|test RAML models with different temperature settings (refer to [Norouzi et al., 2016] for details)\n\n## Usage\n\n* Generate Vocabulary Files\n\n```\npython vocab.py\n```\n\n* Vanilla Maximum Likelihood Training\n\n```\n. scripts/run_mle.sh\n```\n\n* Reward Augmented Maximum Likelihood Training (Norouzi et al., 2016)\n\n```\n. scripts/run_raml.sh\n```\n\n* Reinforcement Learning (Coming soon)\n\n## TODO:\n\n* batched decoding as in openNMT\n\n## License\n\nThis work is licensed under a Creative Commons Attribution 4.0 International License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcyin%2Fpytorch_nmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcyin%2Fpytorch_nmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcyin%2Fpytorch_nmt/lists"}