Sentence:  They had spent the morning revising the act , eliminating all the gay songs , patter and dancing with a <WSD>view</WSD> of the best public relations . 
Meaning of the word marked with <WSD> tags:  purpose; the phrase `with a view to' means `with the intention of' or `for the purpose of'