News for hackers. Stuff that matters.
Re:Show HN: A Natural Language Query Engine Without Machine ... by alanlit on Saturday October 08, 2016 @05:41PM (#12668866)
Bah -- try again so it is readable !!

    %% Simple statements -- root is an announcement word whose subject and object tell the story.
    %% 'IBM announced a new computer today'
    announce(Who, About, What) ==> 
        s+root(['announc', 'releas', 'introduc','launch', 'unveil', 'reveal', agre']), 		
        #Dep1,	
        subject(Who), 
        Dep1 >> object(About, What).
	
    %% 'IBM has announced a partnership ...' is caught by the above. But 'IBM has entered into a   partnership ...' needs 
    %% a little more work
    announce(Who, About, announcement) ==> 
        s+root(['enter']),
        #Obj,
        subject(Who),
        Obj >> prep_pobj_chain(PPC),
        {PPC = [Prep|About]}.

There are no comments on this comment yet.