This paper describes the design principles behind jsRealB (Version 4.0), a surface realizer written JavaScript for English or French sentences from a specification inspired by the constituent syntax formalism but for which a dependency-based input notation is also available. jsRealB can be used either within a web page or as a node.js module. We show that the seemingly simple process of text realization involves many interesting implementation challenges in order to take into account the specifics of each language. jsRealB has a large coverage of English and French and has been used to develop realistic data-to-text applications and to reproduce existing literary texts and sentences from Universal Dependency annotations. Its source code and that of its applications are available on GitHub. The port of this approach to Python (pyrealb) is also presented.
翻译:本文描述了jsRealB(Version 4.0)背后的设计原则,JsRealB(Version 4.0)是英文或法文句子的表面实现者书写JavaScript,由成份语法形式学启发,但也有依赖性输入符号。jsRealB可以在网页中或作为节点js模块使用。我们表明,看来简单的文本落实过程涉及许多有趣的实施挑战,以便考虑到每种语言的具体特点。jsRealB广泛覆盖英文和法文,并被用来开发现实的数据对文本的应用,并用普遍依赖性说明复制现有的文学文本和句子。其源代码及其应用的代码可在GitHub上查阅。还介绍了对Python(Python(Pyrealb)的这一方法的端口。