Entanglement classifier in chemical reactions