{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/texar-a-modularized-versatile-and-extensible-1","title":"Texar: A Modularized, Versatile, and Extensible Toolkit for Text Generation","arxiv_id":"1809.00794","date":"2018-09-04","proceeding":"ACL 2019 7","authors":["Zhiting Hu","Haoran Shi","Bowen Tan","Wentao Wang","Zichao Yang","Tiancheng Zhao","Junxian He","Lianhui Qin","Di Wang","Xuezhe Ma","Zhengzhong Liu","Xiaodan Liang","Wangrong Zhu","Devendra Singh Sachan","Eric P. Xing"],"abstract":"We introduce Texar, an open-source toolkit aiming to support the broad set of text generation tasks that transform any inputs into natural language, such as machine translation, summarization, dialog, content manipulation, and so forth. With the design goals of modularity, versatility, and extensibility in mind, Texar extracts common patterns underlying the diverse tasks and methodologies, creates a library of highly reusable modules, and allows arbitrary model architectures and algorithmic paradigms. In Texar, model architecture, inference, and learning processes are properly decomposed. Modules at a high concept level can be freely assembled and plugged in/swapped out. The toolkit also supports a rich set of large-scale pretrained models. Texar is thus particularly suitable for researchers and practitioners to do fast prototyping and experimentation. The versatile toolkit also fosters technique sharing across different text generation tasks. Texar supports both TensorFlow and PyTorch, and is released under Apache License 2.0 at https://www.texar.io.","url_abs":"https://arxiv.org/abs/1809.00794v2","url_pdf":"https://arxiv.org/pdf/1809.00794v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"texar-a-modularized-versatile-and-extensible-1","repo_url":"https://github.com/asyml/texar","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"texar-a-modularized-versatile-and-extensible-1","repo_url":"https://github.com/asyml/texar-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"texar-a-modularized-versatile-and-extensible-1","repo_url":"https://github.com/eff-kay/temp-texar-repo","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"texar-a-modularized-versatile-and-extensible-1","repo_url":"https://github.com/tanyuqian/texar-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"machine-translation","task_name":"Machine Translation"},{"task_slug":"text-generation","task_name":"Text Generation"},{"task_slug":"translation","task_name":"Translation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1809.00794","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1809.00794"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/asyml/texar","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/eff-kay/temp-texar-repo","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tanyuqian/texar-pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/asyml/texar-pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":12},"by_repo_kind":{"listed":{"samples":12,"ran":0,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"7be74c990e82bf0c","entry":"binary_adversarial_losses","repo":"eff-kay/temp-texar-repo","repo_kind":"listed","path":"texar/losses/adv_losses.py","file_url":"https://github.com/eff-kay/temp-texar-repo/blob/HEAD/texar/losses/adv_losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7be74c990e82bf0c"}},{"code_sha256_prefix":"0473c1f7b7625eef","entry":"get_rnn_cell_trainable_variables","repo":"eff-kay/temp-texar-repo","repo_kind":"listed","path":"texar/core/layers.py","file_url":"https://github.com/eff-kay/temp-texar-repo/blob/HEAD/texar/core/layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0473c1f7b7625eef"}},{"code_sha256_prefix":"d5cec307427d9e0e","entry":"hardmax","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/core/attention_mechanism_utils.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/core/attention_mechanism_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d5cec307427d9e0e"}},{"code_sha256_prefix":"9653005aa6ef8e44","entry":"identity","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/core/layers.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/core/layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9653005aa6ef8e44"}},{"code_sha256_prefix":"cba8e70beb916ef1","entry":"kl_divg_loss_with_logits","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/losses/info_loss.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/losses/info_loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cba8e70beb916ef1"}},{"code_sha256_prefix":"4e46a8c29447d006","entry":"l1","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/core/regularizers.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/core/regularizers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4e46a8c29447d006"}},{"code_sha256_prefix":"cb53333219376a6d","entry":"l1_l2","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/core/regularizers.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/core/regularizers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cb53333219376a6d"}},{"code_sha256_prefix":"504c4f1f2d5dd1ad","entry":"l2","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/core/regularizers.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/core/regularizers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"504c4f1f2d5dd1ad"}},{"code_sha256_prefix":"cc510f94510c4113","entry":"reduce_batch_time","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/losses/losses_utils.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/losses/losses_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cc510f94510c4113"}},{"code_sha256_prefix":"cf2417554b269567","entry":"reduce_batch_time","repo":"eff-kay/temp-texar-repo","repo_kind":"listed","path":"texar/losses/losses_utils.py","file_url":"https://github.com/eff-kay/temp-texar-repo/blob/HEAD/texar/losses/losses_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cf2417554b269567"}},{"code_sha256_prefix":"969098d450751076","entry":"reduce_dimensions","repo":"eff-kay/temp-texar-repo","repo_kind":"listed","path":"texar/losses/losses_utils.py","file_url":"https://github.com/eff-kay/temp-texar-repo/blob/HEAD/texar/losses/losses_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"969098d450751076"}},{"code_sha256_prefix":"0b155fce843aab77","entry":"wrap_builtin_cell","repo":"asyml/texar-pytorch","repo_kind":"listed","path":"texar/torch/core/cell_wrappers.py","file_url":"https://github.com/asyml/texar-pytorch/blob/HEAD/texar/torch/core/cell_wrappers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0b155fce843aab77"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}