Hostname: page-component-74656f9884-8rzl6 Total loading time: 0 Render date: 2026-11-06T08:16:48.947Z Has data issue: false hasContentIssue false

A method based on rules and machine learning for logic form identification in Spanish†

Published online by Cambridge University Press:  24 August 2015

F. MARTÍNEZ-SANTIAGO
Affiliation:
Department of Computer Science, Universidad de Jaén, Paraje Las Lagunillas, s/n, 23071, Jaén, Spain e-mail: dofer@ujaen.es, mcdiaz@ujaen.es, magc@ujaen.es, amontejo@ujaen.es
M. C. DÍAZ-GALIANO
Affiliation:
Department of Computer Science, Universidad de Jaén, Paraje Las Lagunillas, s/n, 23071, Jaén, Spain e-mail: dofer@ujaen.es, mcdiaz@ujaen.es, magc@ujaen.es, amontejo@ujaen.es
M. Á. GARCÍA-CUMBRERAS
Affiliation:
Department of Computer Science, Universidad de Jaén, Paraje Las Lagunillas, s/n, 23071, Jaén, Spain e-mail: dofer@ujaen.es, mcdiaz@ujaen.es, magc@ujaen.es, amontejo@ujaen.es
A. MONTEJO-RÁEZ
Affiliation:
Department of Computer Science, Universidad de Jaén, Paraje Las Lagunillas, s/n, 23071, Jaén, Spain e-mail: dofer@ujaen.es, mcdiaz@ujaen.es, magc@ujaen.es, amontejo@ujaen.es
Rights & Permissions [Opens in a new window]

Abstract

Logic Forms (LF) are simple, first-order logic knowledge representations of natural language sentences. Each noun, verb, adjective, adverb, pronoun, preposition and conjunction generates a predicate. LF systems usually identify the syntactic function by means of syntactic rules but this approach is difficult to apply to languages with a high syntax flexibility and ambiguity, for example, Spanish. In this study, we present a mixed method for the derivation of the LF of sentences in Spanish that allows the combination of hard-coded rules and a classifier inspired on semantic role labeling. Thus, the main novelty of our proposal is the way the classifier is applied to generate the predicates of the verbs, while rules are used to translate the rest of the predicates, which are more straightforward and unambiguous than the verbal ones. The proposed mixed system uses a supervised classifier to integrate syntactic and semantic information in order to help overcome the inherent ambiguity of Spanish syntax. This task is accomplished in a similar way to the semantic role labeling task. We use properties extracted from the AnCora-ES corpus in order to train a classifier. A rule-based system is used in order to obtain the LF from the rest of the phrase. The rules are obtained by exploring the syntactic tree of the phrase and encoding the syntactic production rules. The LF algorithm has been evaluated by using shallow parsing with some straightforward Spanish phrases. The verb argument labeling task achieves 84% precision and the proposed mixed LFi method surpasses 11% a system based only on rules.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2015 
Figure 0

Table 1. Some logic form transformations

Figure 1

Fig. 1. An example of a dependency tree (source: mate-tools using the approach described in Johansson and Nugues (2008)).

Figure 2

Table 2. An example. SRL for the verb ‘to provide’ in the sentence ‘the Earth provides the food we eat every day’

Figure 3

Fig. 2. Dependency tree of the phrase ‘Carlos lee los titulares deportivos de la Estrella Digital’ (‘Carlos reads the Estrella Digital sports headers’) generated by FreeLing 3.1.

Figure 4

Table 3. Example of a rule applied at the same level

Figure 5

Table 4. Example of a rule applied vertically

Figure 6

Table 5. Example of a vector of features for the noun phrase ‘titulares deportivos de la Estrella Digital’ (‘Estrella Digital sports headers’)

Figure 7

Fig. 3. Global view of the pipeline followed by the use case

Figure 8

Table 6. Mapping between syntactic functions annotated in the AnCora-ES corpus and the corresponding argument position in the LF of the verb

Figure 9

Table 7. Confusion matrix of the 1,000 evaluated arguments (with sentences extracted from the AnCora-ES corpus). The position of the argument is codified according to Table 6

Figure 10

Table 8. Some Spanish sentences and the logic form obtained

Figure 11

Table 9. Confusion matrix over the 1,239 verb arguments evaluated (150 translated sentences from the Senseval-3 LFi workshop). The position of the argument is codified according to Table 6

Figure 12

Table 10. Examples of transformation rules for verb phrases

Figure 13

Table 11. The 19 grammar rules for verb phrases

Figure 14

Table 12. Confusion matrix over the 1,239 arguments comparing both models. The position of the argument is codified according to Table 6