Problem: What are the most important words?
locomotives head a freight train
Answer: head, locomotive, train

Problem: What are the most important words?
student works with tablet in the library
Answer: student, tablet, work

Problem: What are the most important words?
A chef cooks a vegetarian dish.
Answer:
chef, cook, dish