-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
My tree is include dict and list, for example: data1 = {"a": [{"b": []}, {"c": [{"h":[]}]}]}, data2 = {"a": [{"b": [{"m":[]}]}, {"c": [{"h":[{"k":[]}]}]}]}, the edit distance always 1. The code:
from apted import APTED
from apted.helpers import Tree
data1 = {"a": [{"b": []}, {"c": [{"h":[]}]}]}
data2 = {"a": [{"b": [{"m":[]}]}, {"c": [{"h":[{"k":[]}]}]}]}
tree1 = Tree(data1)
tree2 = Tree(data2)
apted = APTED(tree1, tree2)
res = apted.compute_edit_distance()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels