Training and search algorithms for an interactive wordspotting system | Synapse