PyFCG: Fluid Construction Grammar in Python
This provides a tool for researchers in computational linguistics and AI to more easily apply FCG in Python environments, though it is incremental as it ports an existing framework.
The authors tackled the problem of integrating Fluid Construction Grammar (FCG) into Python by developing PyFCG, an open-source library that enables seamless use of FCG with Python's ecosystem, as demonstrated through three walkthrough tutorials for typical use cases.
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.