Skip to main content

Triplet-based similarity score for fully multi-labeled trees with poly-occurring labels

Project description

MP3-treesim

Triplet-based similarity score for fully multi-labeled trees with poly-occurring labels.

    usage: __main__.py [-h] [-i | -u | -g] [--labeled-only]
                   [--exclude [EXCLUDE [EXCLUDE ...]]]
                   TREE TREE

    MP3 tree similarity measure

    positional arguments:
    TREE                  Paths to the trees

    optional arguments:
    -h, --help            show this help message and exit
    -i                    Run MP3-treesim in Intersection mode.
    -u                    Run MP3-treesim in Union mode.
    -g                    Run MP3-treesim in Geometric mode.
    --labeled-only        Ingore nodes without "label" attribute. The trees will
                            be interpred as partially-label trees.
    --exclude [EXCLUDE [EXCLUDE ...]]
                            String(s) of comma separated labels to exclude from
                            computation. If only one string is provided the labels
                            will be excluded from both trees. If two strings are
                            provided they will be excluded from the respective
                            tree. E.g.: --exclude "A,D,E" will exclude labels from
                            both trees; --exclude "A,B" "C,F" will exclude A,B
                            from Tree 1 and C,F from Tree 2; --exclude "" "C" will
                            exclude and C from Tree 2 and nothing from Tree 1

A detailed description of the module is available on our github repo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mp3treesim-1.0.5.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

mp3treesim-1.0.5-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page