基于产生式集划分的上下文无关语言句子生成  被引量:3

Generating Sentences of CFL Based on Partition of CFG Production Set

在线阅读下载全文

作  者:王泓皓[1] 董韫美[1] 

机构地区:[1]中国科学院软件研究所计算机科学开放研究实验室,北京100080

出  处:《软件学报》2000年第8期1030-1034,共5页Journal of Software

基  金:国家自然科学基金! (No.6 98730 42 );国家"九五"重点科技攻关项目基金! (No.96 - 72 9- 0 6 - 0 2 )资助

摘  要:给出了上下文无关文法 (context- free grammar,简称 CFG)产生式集的一种划分方法 ,可将产生式分为两类 .使用一类产生式进行推导时 ,推导过程将无限进行下去 ;使用另一类进行推导时 ,推导过程将迅速结束 .证明了 CFG句子生成过程一定是先使用一类产生式使生成的句型不断变长、变复杂 ,再使用另一类产生式使句型变成句子 .据此 ,提出了一种可控制的通用句子生成方法 .其生成一条句子的时间和空间复杂度是 O(r+n) ,其中 n是生成句子的长度或深度限制 ,r是给定上下文无关文法中产生式的数目 .同时 ,给出了适应不同需要的句子生成策略 .In this paper, a method is presented to partition productions of CFG (context free grammar). It divides production set into two parts. The derivation with productions in one part will never terminate, while it must terminate rapidly with productions in the other part. It is proved that the procedure of generating sentences of CFL (context free language) is using productions in one part to make the sentential form longer and more complex first, and then using productions in the other part to terminate the procedure. A general controllable method is attained for generating sentences of CFL with restricted length or depth. The time and space complexity for generating one sentence is O(r+n) , where n is the restricted length or depth of sentences and r is the number of productions in given CFG. The generating strategies for different conditions are also discussed.

关 键 词:句子生成 上下无关语言 产生式集划分 随机法 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象