Ok, let's clear this up.
1. Yoda teaches all the Younglings before they become full Padawans going out and about with a Master, which is why Obi-Wan was trained by both Yoda and Qui-Gon, a point GL reminds us at the start of TPM when Obi-Wan throws some of Yoda's teachings at the Gonmeister.
2. However, Yoda actually WAS Dooku's Master as well; they have a personal relationship, which means the continuity from Yoda to Luke is established, which then gets a roundabout twist as Yoda then teaches Luke directly
3. The 'Master of Qui-Gon' referred to in the TPM novel (assuming the quote is accurate; I've never read it) can't be Yoda because 400 years is too short a time.
4. And in fact this Master is no-one at all. QGJ's Master was Dooku; Dooku simply did not exist when the TPM novel was written.
Therefore, that passage from the TPM novel is simply out of continuity. Film canon has overridden it.
The only way around it is to consider that maybe one Master teaches all the sword fighting, as distinct from other training. Well, feel free to make upyour own mind.