Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the edit distance between two Tree objects
ResourceFunction["TreeEditDistance"][t1,t2] gives the edit distance between Tree objects t1 and t2. |
Create two expression trees:
In[1]:= |
Out[1]= |
Compute the edit distance between the two trees:
In[2]:= |
Out[2]= |
Create two notebooks with similar content:
In[3]:= |
Import the notebooks and convert to expression trees:
In[4]:= |
Out[4]= |
Compute the edit distance between two expression trees:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License