PDA

View Full Version : What is the best way to implement a system like this? NLP...



blackwyvern
01-28-2002, 12:42 AM
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
eats= verb
food= object

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.

Nutshell
01-28-2002, 02:09 AM
THen you'll need a whole dictionary to do this.........

blackwyvern
01-28-2002, 02:16 AM
Actually, I was planning to get a very narrow list of words, and from there it would learn English by asking questions about the words that it doesnt recognize. Is that a decent way to go about things?

QuestionC
01-28-2002, 03:04 AM
Hmm... from what I can tell, you want a program that will try to figure out the English language on it's own...

I wouldn't really try writing something this big unless you already have some experience with parsers. A C parser would be a lot easier than an English parser.