Problem: What are the most important words?
task divide the text into logical parts and to find the topic sentence of each part .
Answer: find, sentence, text

Problem: What are the most important words?
cannons on hill overlooking the harbour
Answer: harbour, hill, overlook

Problem: What are the most important words?
a view of tourist attraction flying the flag
Answer:
attraction, flag, fly, view