arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cmp-lg/9507004cmp-lgcs.CL
收藏

GRAMPAL:用Prolog实现的西班牙语形态处理器

GRAMPAL: A Morphological Processor for Spanish implemented in Prolog

Antonio Moreno, José M. Goñi

摘要:

本文提出了一个完全处理西班牙语动词、名词和形容词屈折变化的模型。该模型是基于特征统一,它依赖于词干和词素的异形词词典。词的形式是通过特殊的语境特征由同形异义词连接而成的。我们使用标准的定子句语法(DCG)包括在大多数Prolog实现,而不是典型的有限状态的方法。这使我们能够利用NLP逻辑编程的声明性和双向性。这种方法最突出的特点是简单:一个非常简单的规则和词汇组件。我们已经为复杂的现象建立了一个非常简单的模型。该模型的声明性,双向性,一致性和完整性进行了讨论:所有的和唯一正确的词的形式进行分析或生成,甚至替代的范式和差距被保留。一个Prolog实现已开发的分析和生成西班牙语单词的形式。它只包含六条DCG规则,因为我们的{ \em词法分析器\/}方法--即大多数信息都在字典中。虽然它是相当有效的,目前的实现可以改善分析使用Prolog的非逻辑功能,特别是在分词和字典访问。

英文摘要:

A model for the full treatment of Spanish inflection for verbs, nouns and adjectives is presented. This model is based on feature unification and it relies upon a lexicon of allomorphs both for stems and morphemes. Word forms are built by the concatenation of allomorphs by means of special contextual features. We make use of standard Definite Clause Grammars (DCG) included in most Prolog implementations, instead of the typical finite-state approach. This allows us to take advantage of the declarativity and bidirectionality of Logic Programming for NLP. The most salient feature of this approach is simplicity: A really straightforward rule and lexical components. We have developed a very simple model for complex phenomena. Declarativity, bidirectionality, consistency and completeness of the model are discussed: all and only correct word forms are analysed or generated, even alternative ones and gaps in paradigms are preserved. A Prolog implementation has been developed for both analysis and generation of Spanish word forms. It consists of only six DCG rules, because our {\em lexicalist\/} approach --i.e. most information is in the dictionary. Although it is quite efficient, the current implementation could be improved for analysis by using the non logical features of Prolog, especially in word segmentation and dictionary access.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑