apted icon indicating copy to clipboard operation
apted copied to clipboard

Question about how to normalize the tree edit distance

Open soloist97 opened this issue 3 years ago • 1 comments

Hi there

Thanks for your excellent repo!

My question is that if I want to normalize the computed tree edit distance into a certain range (e.g., between 0 and 1), what is the best way to do that? Or more mathematically, what is the upper bound of tree edit distance between arbitrary two trees?

Thanks in advance:)

soloist97 avatar Sep 04 '21 09:09 soloist97

The way I do it is: tree_edit_distance_between_source_and_target / tree_edit_distance_between_empty_source_and_target I.e., normalizing by the TED with empty source

JoaoLages avatar Nov 25 '23 15:11 JoaoLages