Skip to content

Repository files navigation

adlc-kgs

Build status Commit activity License

Extracting RDF data from legal decisions.

Context

This project belongs to a research program aimed at extracting structured data from legal decisions issued by the French Competition Authority ("Autorité de la concurrence"), presented in the following venue:

"Information Extraction for the Analysis of the French Competition Authority's Decisions Using Machine Learning" by Arnold Vialfont and Tommaso Bianco. Econom'IA Workshop 2024.

Using an agent-based workflow, this program:

  1. Loads a text and an ontology
  2. Uses LLM to extract RDF data that follows the given ontology
  3. Uses LLM to verify and edit the extracted RDF, also using programmatic verification
  4. Writes the final RDF data to a file

Getting started

First, install the environment:

poetry install

Then, create a .env file with API keys for LLM providers the code will use.

Finally, run the main script with:

poetry run python ./src/main.py

Note that we use dependencies only compatible with python 3.11, so that you may need to create and activate a dedicated environment to run these two commands.

About

Extracting RDF data from legal decisions.

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages