Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Natural Language.

Status
Not open for further replies.

Roaders

Programmer
Aug 5, 2001
38
GB
Hi guys.
I have some coursework to do in prolog - a natural language processing interface. I am working on the syntax analysis at the moment. I have got it to recognise a sentence "Do you have a free double room" with the following info:

sentence --> question.

question --> [IS, THERE], clnounphr.
question --> [DO, YOU, HAVE], nounphr.

clnounphr --> [A], nounphr.
clnounphr --> [THE], nounphr.

nounphr --> adj, nounphr.
nounphr --> adj, noun.
nounphr --> noun.

adj --> [FREE].
adj --> [DOUBLE].

noun --> [ROOM].

I was wondering how I would then extend this to "Do you have a free double room for tonight"

is tonight a noun? what is for?

hope you can help.

Giles. Giles Roadnight
messenger: giles_roadnight@hotmail.com
ICQ: 81621370
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top