TextAttack:为NLP设计Python框架的经验教训
TextAttack: Lessons learned in designing Python frameworks for NLP
摘要:
TextAttack是一个开源Python工具包,用于NLP中的对抗攻击、对抗训练和数据增强。TextAttack将NLP对抗攻击文献中的15多篇论文合并到一个框架中,其中许多组件在攻击中重复使用。这个框架允许研究人员和开发人员测试和研究他们的NLP模型的弱点。要构建这样一个开源的NLP工具包,需要解决一些常见的问题:我们如何让用户能够提供来自不同深度学习框架的模型?我们如何构建工具来支持尽可能多的不同数据集?我们分享我们对开发一个编写良好,文档齐全的NLP Python框架的见解,希望它们可以帮助未来开发类似的包。
英文摘要:
TextAttack is an open-source Python toolkit for adversarial attacks, adversarial training, and data augmentation in NLP. TextAttack unites 15+ papers from the NLP adversarial attack literature into a single framework, with many components reused across attacks. This framework allows both researchers and developers to test and study the weaknesses of their NLP models. To build such an open-source NLP toolkit requires solving some common problems: How do we enable users to supply models from different deep learning frameworks? How can we build tools to support as many different datasets as possible? We share our insights into developing a well-written, well-documented NLP Python framework in hope that they can aid future development of similar packages.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。