The modules with name "consruct_output... .py" takes a directory containing conllu format files, and compute the formal measures for real trees and corressponding random baseline trees. There are six such modules for six baselines. The measures being computed i.e., gap degree, edge degree etc. are stored in same output file for real trees and random baseline trees.
The modules with name "baseline_conditions... .py" containts the algorithm to generate trees for different baselines. To know more about these baselines and measures being computed, see this and this paper.
To install required dependencies: pip install -r requirements.txt