Flexible matching for noisy structural descriptions