|Edit distance between two unlabeled parse trees email@example.com (2006-07-18)|
|Re: Edit distance between two unlabeled parse trees firstname.lastname@example.org (2006-07-19)|
|From:||email@example.com (Hans Aberg)|
|Date:||19 Jul 2006 14:34:22 -0400|
|Posted-Date:||19 Jul 2006 14:34:22 EDT|
> Can anyone shed some light on the problem of finding out the distance
> between two unlabeled parse trees (these trees are built by parsing a
> sentence with two different grammars). Ths problem can be very well
> mapped to the problem of finding out the edit distance between the
> paranthesis structures imposed by the parse tree on the input
> Any good pointer which discusses the computaion of edit distance
> between two parenthesis structures to solve the above problem will be
> of much help.
It is not clear to me exactly what kind of edit changes you want to admit.
For example, you seem to admit operators of different arity to be
But one idea: rewrite the strings into Lukasiewicz or RPN notation, which
do not require parenthesizes, and then apply some kind of Levenshtein
Return to the
Search the comp.compilers archives again.