Sentence:  He was dozing , <WSD>perhaps</WSD> the only sleep he 'd gotten . 
Meaning of the word marked with <WSD> tags:  by chance