DCG文法及其应用实例
DCG Formalism and Its Applying Example
-
摘要: 本文介绍了Warren等人提出的DCG(Definite Clause Grammar)文法规则表示法,阐述了DCG到Prolog子句的转换过程,并分析它用于自然语言处理上的利弊,最后着重介绍一个用DCG描述的数据库自然语言接口的实现实例,此接口软件已在IBM-PC机上实现.Abstract: This paper introduces DCG (Definite Clause Grammar) formalism proposed by Pereira and Warren, describes the translation process from DCG to Prolog clause, and then analyses its advantage and disadvantage when being applied to natural language processing. Finally, we introduce a DCG described natural language interface for database, which can deal with Chinese imperative sentence access to database. This program has been compeleted in IBM-PC computer.
下载: