GithubHelp home page GithubHelp logo

ldterm's Introduction

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.

ldterm's People

Contributors

sinaahmadi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

krnlet pmchozas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.