I guess I have a different perspective: I feel that when kids are asking for attention they should get it. The more comfortable they feel that they can get attention when they are asking for it, the less they will ask for it, though that happens over time. That is just developmentally where they are at. We expect to get attention as adults when we ask for it, we just ask for it (usually) differently than kids do, and (hopefully) less often.
I think it is out of intense frustration and inability to express it that this is happening for your daughter. I don't have a better answer than that, except to try and find a way for her to express herself or give her frustration an outlet. I would do it soon, as I expect it may get worse when she's 3, like it has with our son! He hardly had any outbursts at 2, but at 3 I need to find a way for him to handle his frustrated energy. I'm thinking the Dr. Sears books may have some good solutions but I haven't had time to check into it. I'm trying to work with his daycare teacher. What they do is tell the kids to use their words to tell why they are angry/frustrated.
best wishes!