首页 | 本学科首页   官方微博 | 高级检索  
     

基于产生式集划分的上下文无关语言句子生成
引用本文:王泓皓,董韫美. 基于产生式集划分的上下文无关语言句子生成[J]. 软件学报, 2000, 11(8): 1030-1034
作者姓名:王泓皓  董韫美
作者单位:中国科学院软件研究所计算机科学开放研究实验室,北京,100080
基金项目:本文研究得到国家自然科学基金(No.69873042)和国家“九五”重点科技攻关项目基 金(No.96-729-06-02)资助.
摘    要:给出了上下文无关文法(context-free grammar,简称CFG)产生式集的一种划分方法,可将产 生式分为两类.使用一类产生式进行推导时,推导过程将无限进行下去;使用另一类进行推导 时,推导过程将迅速结束.证明了CFG句子生成过程一定是先使用一类产生式使生成的句型不 断变长、变复杂,再使用另一类产生式使句型变成句子.据此,提出了一种可控制的通用句子 生成方法.其生成一条句子的时间和空间复杂度是O(r+n),其中n是生成句子的长度或深度 限制

关 键 词:上下文无关文法  产生式集合  产生式集合划分   句子生成  句子生成策略.
收稿时间:2000-01-17
修稿时间:2000-04-21

Generating Sentences of CFL Based on Partition of CFG Production Set
WANG Hong-hao and DONG Yun-mei. Generating Sentences of CFL Based on Partition of CFG Production Set[J]. Journal of Software, 2000, 11(8): 1030-1034
Authors:WANG Hong-hao and DONG Yun-mei
Affiliation:Laboratory of Computer Science Institute of Software The Chinese Academy of Sciences Beijing 100080
Abstract:In this paper, a method is presented to partition productions of CFG (context-f ree grammar). It divides production set into two parts. The derivation with prod uctions in one part will never terminate, while it must terminate rapidly with p roductions in the other part. It is proved that the procedure of generating sent ences of CFL (context-free language) is using productions in one part to make t he sentential form longer and more complex first, and then using productions in the other part to terminate the procedure. A general controllable method is atta ined for generating sentences of CFL with restricted length or depth. The time a nd space complexity for generating one sentence is O(r+n), where n is th e restricted length or depth of sentences and r is the number of productions in given CFG. The generating strategies for different conditions are also discu ssed.
Keywords:CFG (context-free grammar)   production set   production set partition   sentence generation   sentence generating strategy.
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号