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