arXiv:2505.12920cs.CLcs.AI2025-05被引 2

将流式构造语法移植到Python,支持自然语言分析与智能体通信实验。

PyFCG: Fluid Construction Grammar in Python

  • 用Python实现流式构造语法,可无缝集成到现有程序中。
  • 支持从语料库学习构式语法,并验证语法分析结果。
  • 适合语言学研究者和认知计算方向的开发者使用。

我们提出PyFCG,一个开源的Python软件库,将流式构造语法(FCG)移植至Python编程语言。PyFCG使用户能够轻松将FCG功能集成到Python程序中,并结合Python丰富的生态工具使用。本文不仅介绍该库的通用特性,还提供了三个入门教程,演示其在典型应用场景中的使用:(i) 形式化并测试构造语法分析;(ii) 从语料库中学习基于用法的构造语法;(iii) 实现关于涌现性语言交流的智能体实验。

原文摘要 · Abstract (English)

We present PyFCG, an open source software library that ports Fluid Construction Grammar (FCG) to the Python programming language. PyFCG enables its users to seamlessly integrate FCG functionality into Python programs, and to use FCG in combination with other libraries within Python's rich ecosystem. Apart from a general description of the library, this paper provides three walkthrough tutorials that demonstrate example usage of PyFCG in typical use cases of FCG: (i) formalising and testing construction grammar analyses, (ii) learning usage-based construction grammars from corpora, and (iii) implementing agent-based experiments on emergent communication.

语法建模自然语言智能体Python

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。