摘要
介绍了一种自动代码生成的方法。提出了以动词为中心,基于属性的语义处理方法理论。在此思想理论的指导下,建立了相应的知识库和语义处理规则库,并详细研究了受限自然语言语句中词语的语义处理过程。最后将受限自然语言理解应用自动代码生成中去,通过对已经规范化的受限汉语语句中的各个动词进行分类并赋予其属性概念,依据知识库和规则库,对受限语句进行语义分析,将之转换为中间语言,并结合可定制的模板方法,在程序生成引擎中自动生成代码。
Describe an automatic code generation approach.Proposed to the verb as the center,property-based theory of the semantic approach.In this ideological and theoretical guidance,establish the knowledge base and the corresponding processing rules and semantics of the library,and a detailed study of the limited terms of natural language statement,the semantics of the process.Finally,the limited natural language understanding application of automatic code generation.Through the restricted Chinese statements have been standardized in the various verbs and give their properties to classify the concept,based on knowledge base and rule base,the statement is limited to semantic analysis,will be converted into the intermediate language,combined with customizable templates method,and then automatically generated code in the code generation engine.
出处
《计算机技术与发展》
2010年第5期104-107,共4页
Computer Technology and Development
关键词
自动生成
动词属性
语义分析
中间语言
模板
automatic generation
verbs property
semantic analysis
intermediate language
template