Problem: What are the most important words?
train moving on railway to the city
Answer: city, move, train

Problem: What are the most important words?
the round arch of a ceiling is shined with beams
Answer: arch, beam, ceiling

Problem: What are the most important words?
woman in front with black bag at her side. second woman entering behind
Answer:
enter, front, side