A measurement of the weak axial couplings of theb- andc-quark