Home

Awesome

Industrial Ecology Machine Learning Mapping

This Python module uses machine learning to map two classifications together, based on words similarity.

Uses in Industrial Ecology

Industrial Ecology is a field of study where a lot of disciplines co-exists and often interacts. Mapping is thus typically required in IE projects to connect two databases. This module can assist in mapping to

Installation

Install necessary module with pip

pip install -r requirements.txt

Getting started

Choose a reference classification, a machine learning model and the amount of guess the algorithm will display.

self = ML_mapping.Mapping(reference_classification='exiobase',
                          transformer_model='all-MiniLM-L6-v2',
                          number_of_guesses=5)

Then enter the inputs you want to match to the reference classification, calculate similarity scores and format the results

self.match_inputs(['ADPE System Configuration','Chocolate','Renting a film'])
self.calculate_scores()
self.format_results()

The module returns: img.png

Classifications

The work for the following classifications has already been done in this module

If the classification you want to match is not already covered, adding it is not complicated.

Credit

This module is simply applying the work of https://github.com/UKPLab/sentence-transformers