A.L.
Have you asked your daughter why? I know you said you have talked to her about how important education is that you want her to be able to learn, but have you asked her why she behaves this way? This actually many times is an indication of boredom. I was also the same way in school and spent alot of time in corners and closets. It was usually because I was quick to finish my work and had nothing else constructive to do. This may be an issue that needs to be discussed with the school and/or teacher.
I do agree though that positive reinforcement, rewarding her for her good behavior, is the more effective way to go even though it is hard to resist punishment. When you take away priviledges as discipline just do so very matter of factly, be done with that episode, and move on. ie: you have done "this" so you will lose "this" (end of story)