arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.04236cs.CLcs.AIquant-ph
收藏

lambeq:一个高效的Quantum高级Python库NLP

lambeq: An Efficient High-Level Python Library for Quantum NLP

Cambridge Quantum Computing(剑桥量子计算公司)

Dimitri Kartsaklis, Ian Fan, Richie Yeung, Anna Pearson, Robin Lorenz, Alexis Toumi, Giovanni de Felice, Konstantinos Meichanetzidis, Stephen Clark, Bob Coecke

摘要:

我们介绍了lambeq,第一个用于量子自然语言处理(QNLP)的高级Python库。这个开源工具包提供了一个详细的模块和类层次结构,实现了将句子转换为字符串图、张量网络和量子电路的管道的所有阶段,可以在量子计算机上使用。Lambeq支持句法分析、字符串图的重写和简化、语法创建和操作、以及用于准备句子的量子友好表示的多个组合模型,采用不同程度的语法敏感性。我们提出了通用的体系结构,并详细描述了最重要的模块,演示了使用说明性的例子。此外,我们在实践中测试工具包,使用它来执行一些简单的NLP任务的实验,实现经典和量子管道。

英文摘要:

We present lambeq, the first high-level Python library for Quantum Natural Language Processing (QNLP). The open-source toolkit offers a detailed hierarchy of modules and classes implementing all stages of a pipeline for converting sentences to string diagrams, tensor networks, and quantum circuits ready to be used on a quantum computer. lambeq supports syntactic parsing, rewriting and simplification of string diagrams, ansatz creation and manipulation, as well as a number of compositional models for preparing quantum-friendly representations of sentences, employing various degrees of syntax sensitivity. We present the generic architecture and describe the most important modules in detail, demonstrating the usage with illustrative examples. Further, we test the toolkit in practice by using it to perform a number of experiments on simple NLP tasks, implementing both classical and quantum pipelines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑