%% Description: An English Grammar for a Chart Parsing %% %% Writer: Gazdar/Mellish(1989) %% %% °ü·Ã¼º: Á¦ 3 Àå %% %% This program has to be loaded by "chart.pl" %% %% Name: epsg3.pl %% :- op(1200,xfx,--->). %% Rules %% s---> [np,vp]. vp--->[iv]. vp--->[iv,pp]. vp--->[tv,np]. vp--->[tv,np,pp]). vp--->[tv,np,vp]. np--->[det,n]. np--->[det,n,pp]. pp--->[p,np]. %% Lexicon %% det--->[a]. det--->[the]. det--->[her]. np--->[peter]. np--->[her]. np--->[they]. np--->[nurses]. n--->[nurses]. n--->[girl]. n--->[report]. n--->[telescope]. iv--->[report]. tv--->[hear]. tv--->[see]. tv--->[saw]. p--->[on]. p--->[with]. %% Test %% test1 :- chart([nurses,report]). test2 :- chart([they,hear,the,report,on, the,nurses]). test3 :- chart([peter,saw,the,girl,with,a,telescope]).