Ac ce pt ed m an us cr ip t Learning Probabilistic Models of Tree Edit Distance ⋆