Sentence:  He had not even <WSD>thought</WSD> about her much except once or twice at night in bed when his slowly ranging thoughts would abruptly , almost accidentally , encounter her . 
Meaning of the word marked with <WSD> tags:  have on one's mind, think about actively