Skip to content
/ LDTerm Public
forked from sinaahmadi/LDTerm

Linked data for terminological resources

Notifications You must be signed in to change notification settings

krnlet/LDTerm

 
 

Repository files navigation

This repository contains the source code of the paper "From a Plain Term List to a Multilingual Linked Terminology: Automatic Population and Relation Extraction". As the title suggests, given a list of terms, this program creates a terminological resource by retrieving data from Wikidata, filtering terms based on concepts and classifying alternative labels using ConceptNet.

As the current program is under development, no error handling mechanism is present for the moment. Further documentation will be provided upon the publishing of the corresponding paper.

Execution process

Your desired execution flow can be described in the configuration file, i.e. configuration.json as follows:

{
	"source_language": "english",
	"run_id": "6",
	"source_file_dir": "Input/6term.csv",
	"gold_concepts_dir": "gold_concepts.json",
	"retrieve_wikidata": false,
	"retrieve_ConceptNet": false,
	"analysis": false,
	"evaluate": true
}

You can modify the variables in the configuration according to your data. These variables refer to:

  • source_language: the language of the input terms (only one language is accepted)
  • run_id is an ID that you can set for your execution. The resulting files will be named according to this variable
  • retrieve_wikidata should be set to true to retrieve data from Wikidata. The output is saved in the Wikidata folder.
  • retrieve_ConceptNet is set to true to retrieve synonyms of the alternative labels on ConceptNet. In this part of the program, the induction rules are also applied over the alternative labels and the original terms using the axioms described in the paper (four semantic relationships are taken into account: synonymy, relatedness, hyponymy and hypernymy. The output is saved in the Induction folder.
  • analysis is set to true to run a statistical analysis on which parts of the information are retrieved. It also creates the output of the axioms in a file in the output folder.
  • evaluate evaluate the output of the approach with respect to the gold-standard file goldstandard.json. The results are saved in the Evaluation folder.

Please note that the gold_concepts.json file may vary depending on the terminological domain.

The output of each part of the program is saved in a specific directory in JSON format. The final output is also provided in RDF.

A successful execution of the program looks like the following:

============ Reading the configuration file
====== Retrieving data from Wikidata:
discrimination
maternity leave
public policy
case law
Appellanten
claim
====== Retrieving data from ConceptNet:
diskriminierung
discrimination
discrimination
discriminación
discriminatie
mutterschaftsurlaub
zwangerschaps- en bevallingsverlof
public policy
public policy
public policy
políticas públicas
fallrecht
case law
jurisprudencia
jurisprudentie
appellanten
==== Saving induced data.
====== Analysing valid outputs
All translations 30
Empty items: 0
Empty A: 7
Empty S: 8
All valids: 15
====== Evaluating the performance
=== Saving evaluation results.
============ Finished.

About

Linked data for terminological resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%