Sure, if these two examples are all your system has to work with... but then, what could you expect? With a decent corpus (database of example text), the system should be able to learn the two different senses of "like", as well as that "time files" is generally noun-verb whereas "fruit flies" is a noun phrase.
Sure, if these two examples are all your system has to work with ... but then, what could you expect? With a decent corpus (database of example text), the system should be able to learn the two different senses of "like", as well as that "time files" is generally noun-verb whereas "fruit flies" is a noun phrase.