What is the best way to implement a system like this? NLP...

This is a discussion on What is the best way to implement a system like this? NLP... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I want a system that can break down the words of a string(sentence) into its basic parts of English. I ...

  1. #1
    Registered User blackwyvern's Avatar
    Join Date
    Jan 2002
    Posts
    60

    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
    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.

  2. #2
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    THen you'll need a whole dictionary to do this.........

  3. #3
    Registered User blackwyvern's Avatar
    Join Date
    Jan 2002
    Posts
    60
    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?

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    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.
    Callou collei we'll code the way
    Of prime numbers and pings!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 06:56 PM
  2. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  3. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 04:35 PM
  4. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 06:12 AM
  5. Problem Reporting System. Need Advide!
    By brunomiranda in forum Tech Board
    Replies: 9
    Last Post: 09-25-2003, 09:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21