Boundary(gold, disc, output_folder=None)¶
The boundary measures how many ‘Gold’ boundaries were found. See https://docs.syntheticlearner.net/tde/measures/index.html for a summary of all measures.
Input :param disc: Discovered Object, contains the discovered boundaries :param gold: Gold object, contains all the gold boundaries :param output_folder: string, path to the output folder
Output :param precision: Boundary Precision :param recall: Boundary Recall
Return Token and Type precision
Return Token and Type recall
Create intervaltree containing only boundary phones. Here we discriminate upward and downward boundaries, because if a word is followed by a silence, the upward boundary should be counted if discovered as upward, but not if discovered as downward.
Input :param disc_down: a list of all the downward boundaries of
disc_up – a list of all the upward boundaries of discovered segments
a set of all the downward gold boundaries
a set of all the upward gold boundaries