If it's in the contract then I think she's stuffed. Whether she signed it or not, the fact that she took the job I think means she's entered into the contract.
My missus had a similar set up at her old job. If she left within a year of completing the training course (that the company funded) she would be liable to repay the cost of the course.
No idea how it works in regards to being written into contracts etc sorry.
If I do any training cources and leave the company less than 2 years later I have to pay for the training. I just refuse to do the training these days.
So you want to avoid paying for a course that contractually you are obliged to? The company takes a risk training folks, and should have a right to be reimbursed costs should you decide to bugger off early.