52 349 Logic Programming

Simple N.L.P - Source File



%  SIMPLE N.L.P - PG:21.11.96.


sentence    --> noun_phrase,
                verb_phrase.

noun_phrase --> [boys].

verb_phrase --> [sing].


phrase(Type,List):-
  Goal=..[Type,List,[]],
  call(Goal).


% End of file ~paul/logic/349/nlp.


Prolog Listing

N.L.P Run 1

N.L.P Run 2


© Paul Goldfinch 1996 Return to N.L.P Text