What is the best way to implement a system like this? NLP...
I want a system that can break down the words of a string(sentence) into its basic parts of English.
I want to input a string like:
"The dog eats food."
and the program to say:
Dog = subject
I was thinking about this problem for a while. You could create a list of words that could be nouns, a list of delterminers, a list of verbs and a list of adverbs. And with a ruleset like:
If the noun comes before verb it is most likely the subject.
If a noun comes after the verb it is most likely an object.
Do you have any suggestions on how this could work?
I have been looking at my C++ editor screen for the past 3 hours trying to figure a way I could do this without any luck, really.