当前位置:主页 > 文艺论文 > 汉语言论文 >

基于关系代数的语法—语义分析单元设计

发布时间:2018-09-13 16:59
【摘要】:句法分析是结构模式识别系统的重要组成部分之一。然而,传统上句法分析单元的实现方式是通过编写专门的过程语言的代码。当应用领域需要识别的文法规模十分庞大时,编写出能够快速对样本进行识别的程序,并不容易。 本文尝试通过将句法分析算法与关系代数模型紧密集成,利用关系数据库系统能够组织和快速检索海量数据的特点,增强句法分析单元处理复杂文法样本的能力,同时减轻用户的编码负担。 我们给出了Earley (?)(?)法分析算法的扩展关系模型。在此框架中,任意部分推导树集合可对应表示为关系代数中一个关系;部分推导树之间的运算被表示为关系代数运算;语法分析算法被对应表示为一条递归查询语句;过程语言描述的运算过程与递归查询的查询执行在单个运算、控制结构、数据结构三个方面存在对应关系。 依据此框架,我们给出一种新的Earley语法分析关系代数算法,及其公用表表达式(CTE)实现和存储过程的实现。并通过原型系统验证了该方法的可行性。 属性文法兼有决策理论方法和结构方法两者的特点,所以在模式识别领域中受到广泛的注意。因此进一步本文尝试将基于关系代数的方法推广应用于属性文法的语义分析问题,给出一种基于关系代数的Earley综合属性语法制导翻译算法。将其应用于一个基本的综合属性计算问题——算术表达式求值问题,算法可在读入表达式词法分析结果的同时,计算出表达式的值。从而验证了该方法的可行性。 已知了Earley语法分析算法与关系数据库间存在的这些对应关系,在今后的算法设计中就可以全部或部分地利用这些关系,有选择地将句法分析问题全部或部分转化为数据库查询问题,借助关系数据库系统处理海量数据的优势,增强句法分析单元处理复杂文法样本的能力。此外,借助本文给出的扩展关系代数运算,可以方便地表达Earley语法分析算法运算过程中产生的语法分析项目或部分推导树之间的关系。 理论方面,由于已知这些对应关系,对于一个领域的某些问题,通过类比,有可能从另一个领域获得启发。例如,我们可以通过比较二者,发现相对查询执行而言,过程语言所描述的算法在某些方面具有更高执行效率的原因。这些无疑是数据库查询处理可以借鉴的。
[Abstract]:Syntactic analysis is one of the important components of structural pattern recognition system. Traditionally, however, syntactic parsing units are implemented by writing specific procedural language codes. When the scale of grammar recognition in application field is very large, it is not easy to write a program that can recognize samples quickly. This paper attempts to integrate the syntactic parsing algorithm with the relational algebra model, and make use of the characteristics of the relational database system to organize and quickly retrieve the massive data, so as to enhance the ability of the syntactic analysis unit to deal with complex grammar samples. At the same time reduce the user's coding burden. We gave Earley (?) The extended relational model of the algorithm is analyzed by the method. In this framework, any set of partial derivation trees can be represented as a relation in relational algebra, the operations between partial derivation trees can be represented as relational algebraic operations, and the syntax analysis algorithm can be represented as a recursive query statement. The operation process described by the procedure language has corresponding relations with the query of recursive query in three aspects: single operation, control structure and data structure. According to this framework, we present a new Earley syntax parsing relational algebra algorithm, and the realization of common table expression (CTE) and stored procedure. The feasibility of the method is verified by the prototype system. Attribute grammar has both the characteristics of decision theory and structural method, so it has been paid more and more attention in the field of pattern recognition. Therefore, this paper attempts to extend the relational algebraic approach to the semantic analysis of attribute grammars, and presents a Earley Synthetical attribute Grammar guidance Translation algorithm based on relational algebra. It is applied to a basic comprehensive attribute evaluation problem, the arithmetic expression evaluation problem. The algorithm can calculate the expression value while reading the result of the expression lexical analysis. The feasibility of the method is verified. These corresponding relations between Earley parsing algorithm and relational database are known, which can be fully or partially utilized in future algorithm design. The syntactic parsing problem is transformed into database query problem in whole or in part selectively, and the ability of syntactic analysis unit to deal with complex grammar samples is enhanced by using the advantage of relational database system to deal with massive data. In addition, with the help of the extended relational algebraic operation presented in this paper, it is easy to express the relationship between the parse items or partial derivation trees produced in the operation of the Earley parsing algorithm. Theoretically, because these corresponding relations are known, it is possible to draw inspiration from another domain for some problems in one domain by analogy. For example, by comparing the two, we can find the reason why the algorithms described in the procedure language are more efficient in some aspects than query execution. These are undoubtedly database query processing can be used for reference.
【学位授予单位】:大连交通大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:H043

【共引文献】

相关期刊论文 前10条

1 李用江,回雁雁;基于ADO.NET的海洋经济生物MIS系统[J];安阳师范学院学报;2004年05期

2 徐洁;许永昌;于亚娄;金卫东;;数据库技术在测井资料分析中的应用[J];吉林大学学报(地球科学版);2007年S1期

3 刘萌萌;;基于B/S、C/S的混合模式在网络数据库中的应用[J];成都信息工程学院学报;2006年02期

4 孙浩鹏;;基于SQL的高校科研管理平台[J];长春工程学院学报(自然科学版);2010年01期

5 向宏;唐旭;胡海波;鲁先志;李乐乐;;大量并发环境下的缓冲异步处理模型[J];重庆工学院学报(自然科学版);2009年01期

6 王建民;曹庆芳;金卫东;;岩石物理实验数据库网络系统的建立[J];测井技术;2006年03期

7 李长文;余春昊;周军;李国军;刘复屏;;测井处理解释一体化软件平台的设计[J];测井技术;2011年04期

8 王红艺;李冠峰;杨春蕾;普杰信;;实例教学在数据库原理教学中的应用[J];电脑知识与技术(学术交流);2007年05期

9 王木林;;基于关联规则数据挖掘技术在教学管理中的应用[J];电脑知识与技术(学术交流);2007年08期

10 张立;;数据库管理系统及其实现问题研究[J];电脑知识与技术;2010年16期

相关会议论文 前3条

1 殷旭;田英爱;;高校计算机专业数据库课程教学改革研究与探讨[A];着力提高高等教育质量,,努力增强高校创新与服务能力——北京市高等教育学会2007年学术年会论文集(上册)[C];2008年

2 吴秀娟;方爱平;;基于SQL Server的测绘仪器检定数据处理系统的VC++实现[A];2009年全国测绘仪器综合学术年会论文集[C];2009年

3 许世峰;高军;杨冬青;王腾蛟;;基于穿行次数的大规模图数据路径查询[A];第26届中国数据库学术会议论文集(A辑)[C];2009年

相关博士学位论文 前6条

1 于宝琴;成套电器企业异构数据整合及其物流系统的研究[D];天津大学;2006年

2 杨林;支持多模式的复合交通网络模型及关键技术研究[D];中国地质大学;2008年

3 赵春宇;高性能并行GIS中矢量空间数据存取与处理关键技术研究[D];武汉大学;2006年

4 向军;移动实时数据库系统服务质量管理[D];华中科技大学;2008年

5 胡茂胜;基于数据中心模式的分布式异构空间数据无缝集成技术研究[D];中国地质大学;2009年

6 戴露;煤矿地测数据的地理本体与网络服务研究[D];中国矿业大学;2010年

相关硕士学位论文 前10条

1 任萌;鲍店煤矿辅助运输信息管理系统设计与实现[D];山东科技大学;2010年

2 宋小波;基于Flex的内容管理系统(CMS)的设计与实现[D];湘潭大学;2010年

3 王强;高校综合人力资源管理系统的设计和实现[D];中国海洋大学;2010年

4 申冠楠;百货店库存管理信息系统的设计与实现[D];中国海洋大学;2010年

5 李秀雯;基于WebGIS的河南工业经济监测预警系统设计[D];河南工业大学;2010年

6 刘娟;基于.NET的小区物业管理系统的设计与实现[D];华东师范大学;2010年

7 胡建钧;浙江商职院网络评审系统的设计与实现[D];华东师范大学;2010年

8 陈洁敏;电子运维系统中作业管理模块的设计和实现[D];华南理工大学;2010年

9 吴东;网上人才信息管理系统[D];南昌大学;2010年

10 程岁岁;面向XML文档的细粒度访问控制研究及应用[D];东华大学;2011年



本文编号:2241788

资料下载
论文发表

本文链接:https://www.wllwen.com/wenyilunwen/hanyulw/2241788.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户4059a***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com