Skip to content

ITU-DASYALab/wordnet-hierarchy

Repository files navigation

wordnet-hierarchy

Scripts to get the WordNet hierarchy

Requirements

Python 3.7 or higher

nltk package

pip3 install nltk

py/extract_semantic_labels.py

Mapping image tags to spotify track. Album Cover Artwork used for Music Tower Blocks and DR music data.

py/makeWordNetDef.py

This file is used to get the WordNet definitions from the 12988 features. It requires the class descriptions file along with a file containing the distinct features to get definitions from.

py/makeHierarchy.py

This uses the output file from makeWordNetDef.py to get the hierarchy path to each word

py/node.py

Encapsulates the concept of a node in the tree.

py/makeTree.py

This file creates a tree structure using the output file from makeHierarchy.py and the distinct feature file.

The file encapsulates the compression run of the initial json tree and keeps track of statistics and metadata for plotting throughout the compression process.

plot.sh

Automatically generates gnuplot of tree compression steps.

py/writeCutOffs.py

Write tree cutoffs and removed nodes from absorbe, merge, and trim operations. Can get formatted to SQL statements