Text this: Inference networks for molecular database similarity searching