I agree anything but a shock collar

Yorkies are very smart dont underestimate them. She knows she is doing wrong but her urge to do it is obviously stronger than the shock! Maybe some positive reinforcement and classes would helps lots.....
I have a true story for you, I was engaged to a State Trooper for 4 years, he called me one night said we got a call from a lady that said this. My neighbor has a Lab, they have an invisible fence the dog would run thru the fence and scream bloody murder while getting shocked and continue on running. After the people took the collar off the fence was no longer a shock to him BUT when he hit that line where the fence USED to be he would still scream and jerk like he was shocked and continue running. The lady was calling to report the dog as escaped but told this story to them as she reported it. Sorry the shock collar reminded me of it. Dogs are smart!