www-ai.cs.tu-dortmund.de/de/LEHRE/FACHPROJEKT/SS14/Papers/TreeKernels/PracticalTreeNLP.pdf
05_2_moschitti_214.pdf
〈n1, n2〉 such that
(p(n1) = p(n2)) ∈ L1∩L2. Step (iii) may require
only O(|NT1 |+ |NT2 |) time, but, if p(n1) appears
r1 times in T1 and p(n2) is repeated r2 times in
T2, we need to consider r1 × r2 pairs [...] and*/ n2 = extract(L2); /*remove it from the list*/ while (n1 and n2 are not NULL)
if (production of(n1) > production of(n2)) then n2 = extract(L2); else if (production of(n1) < production of(n2))
then [...] s at n1 and n2 are different
then ∆(n1, n2) = 0;
2. if the productions at n1 and n2 are the
same, and n1 and n2 have only leaf children
(i.e. they are pre-terminals symbols) then
∆(n1, n2) = 1;
3. if the …