Problem: What are the most important words?
shepherd with goats going to the mountain
Answer: goat, mountain, shepherd

Problem: What are the most important words?
Three giraffes and two zebras are feeding in a zoo.
Answer: feed, giraffe, zebra

Problem: What are the most important words?
view of a city from window of moving train
Answer:
city, train, view, window