Accelerating the inference of string generation-based chemical reaction models for industrial applications