{"id":409,"date":"2026-03-16T23:27:20","date_gmt":"2026-03-16T23:27:20","guid":{"rendered":"https:\/\/dectau.uclm.es\/bousi-prolog\/?p=409"},"modified":"2026-11-05T17:12:32","modified_gmt":"2026-11-05T17:12:32","slug":"wordnet","status":"publish","type":"post","link":"https:\/\/dectau.uclm.es\/bousi-prolog\/2026\/03\/16\/wordnet\/","title":{"rendered":"WordNet"},"content":{"rendered":"<h1><span style=\"color: #ff00ff\"><strong>Spanish WordNet in a readable Prolog format<\/strong><\/span><\/h1>\n<p><span style=\"color: #000000\">With the aim of integrating the Spanish WordNet databases into a fuzzy logic extension of Prolog called Bousi~Prolog, in<\/span><\/p>\n<blockquote><p><span style=\"color: #0000ff\">Pascual Juli\u00e1n Iranzo, Germ\u00e1n Rigau, Fernando S\u00e1enz-P\u00e9rez, Pablo Velasco-Crespo:\u00a0<em><strong>Conversion of the Spanish WordNet databases into a Prolog-readable format<\/strong>.\u00a0<\/em><em>Language Resources and Evaluation<\/em> 59(2): 1631\u20131657 (2025)<\/span><\/p><\/blockquote>\n<p><span style=\"color: #000000\">we translated the Multilingual Central Repository (MCR) version of Spanish WordNet into a Prolog-compatible format. The programs that perform this translation are available at:<\/span><br \/>\n<span style=\"color: #000000\"><a style=\"color: #000000\" href=\"https:\/\/github.com\/PabloVelascoCrespo\/MCR_to_Prolog\">https:\/\/github.com\/PabloVelascoCrespo\/MCR_to_Prolog<\/a><\/span><\/p>\n<p><span style=\"color: #000000\">This translation produces a set of Spanish lexical databases that enable access to WordNet information through declarative techniques and the deductive capabilities of the Prolog language.<\/span><\/p>\n<p><span style=\"color: #000000\">However, the MCR databases lack important information regarding the <strong>relevance of words<\/strong>, and this information is therefore also missing in the Prolog version. To address this limitation, in an outgoing work about\u00a0<em>\u201c<strong><span style=\"color: #0000ff\">Computing Word Relevance in the Spanish WordNet<\/span><\/strong>\u201d<\/em>, we extracted word usage information from several annotated corpora in order to fill this gap in the Prolog version of the MCR Spanish WordNet. This process also makes it possible to compute the ordering of the words belonging to a synset.<\/span><\/p>\n<p><span style=\"color: #000000\">We implemented a series of programs to compute word relevance and generate the updated file <code>wn_s.pl<\/code> from both the corpora and the MCR-WordNet information. These programs are organized as a sequence of steps forming a processing pipeline.<\/span><\/p>\n<p><span style=\"color: #000000\"><strong>First step: computation of word occurrences in the corpora<\/strong><\/span><\/p>\n<pre><span style=\"color: #000000\"><code>1-procesar_ancora.py\n1-procesar_SenSem.py\n1-procesar_wikicorpus_parallel.py\n<\/code><\/span><\/pre>\n<p><span style=\"color: #000000\"><strong>Second step: corpora alignment<\/strong><\/span><\/p>\n<pre><span style=\"color: #000000\"><code>2-corpus_wn16_to_wn30.py\n2-1-resolve_synset_not_found_by_context.py\n2-2-resolve_label_subset.py\n2-3-resolve_labels_jaccard_soft.py\n2-resolve-single-synsets.py\n<\/code><\/span><\/pre>\n<p><span style=\"color: #000000\"><strong>Third step: computation of the <code>Tag_Count<\/code>, ordering of words within a synset, and generation of <code>wn_s.csv<\/code><\/strong><\/span><\/p>\n<pre><span style=\"color: #000000\"><code>3-actualiza_tagcount.py\n4-ordenar_synsets_W_num.py\n<\/code><\/span><\/pre>\n<p><span style=\"color: #000000\"><strong>Fourth step: conversion to Prolog<\/strong><\/span><\/p>\n<pre><span style=\"color: #000000\"><code>5-csv_a_prolog.py\n<\/code><\/span><\/pre>\n<p><span style=\"color: #000000\">These programs, together with a script that facilitates their execution, can be downloaded <a href=\"https:\/\/dectau.uclm.es\/PROGRAMAS_Computo_TagCount.zip\"><strong><span style=\"color: #ff0000\">here<\/span><\/strong><\/a>.<\/span><\/p>\n<p><span style=\"color: #000000\">Since some of the corpus annotations use synset identifiers corresponding to <strong>WordNet version 1.6<\/strong>, we developed several alignment methods to map these identifiers to <strong>WordNet version 3.0<\/strong> in order to support the second step of the pipeline. The programs that perform this task are:<\/span><\/p>\n<pre><span style=\"color: #000000\"><code>1-map_wn16_to_wn30.py\n2-sp_convert_mapping.py\n<\/code><\/span><\/pre>\n<p><span style=\"color: #000000\">and can be downloaded <a href=\"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-content\/uploads\/sites\/3\/2026\/03\/PROGRAMA-SenseKey_mapping.zip\"><strong><span style=\"color: #ff0000\">here<\/span><\/strong><\/a>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spanish WordNet in a readable Prolog format With the aim of integrating the Spanish WordNet databases into a fuzzy logic extension of Prolog called Bousi~Prolog, in Pascual Juli\u00e1n Iranzo, Germ\u00e1n Rigau, Fernando S\u00e1enz-P\u00e9rez, Pablo Velasco-Crespo:\u00a0Conversion of the Spanish WordNet databases into a Prolog-readable format.\u00a0Language Resources and Evaluation 59(2): 1631\u20131657 (2025) we translated the Multilingual Central &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/dectau.uclm.es\/bousi-prolog\/2026\/03\/16\/wordnet\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;WordNet&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-409","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"_links":{"self":[{"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/posts\/409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/comments?post=409"}],"version-history":[{"count":6,"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/posts\/409\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/posts\/409\/revisions\/425"}],"wp:attachment":[{"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/media?parent=409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/categories?post=409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dectau.uclm.es\/bousi-prolog\/wp-json\/wp\/v2\/tags?post=409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}