Sentence:  Pam realized , to her <WSD>surprise</WSD> , that she had been almost dozing . 
Meaning of the word marked with <WSD> tags:  the astonishment you feel when something totally unexpected happens to you