finance legal chemistry biology code medical text-generation-inference