You may have to start from an eariler save or a glitch.
I once walked into honeyside in Riftin and my housecarl attacked me. Gues she was happy to see me. I quickly exited and then walked back in "A pleasure to see you my thane" she greeted me like nothing was wrong
She's probably got a cat somewhere far in her family tree. If they get way too excited, they can attack you for apparently no reason at all until they've vented most of their excitement. I advice you to return to her more frequently, so it won't build up like that in her anymore. ^^