0
votes

How to use ANTLR parse the natural sentence? Exp: John likes mary. In prolog, every thing is simple:

s-->np, vp.
np-->[john].
np-->[mary]
vp-->v, np.
v-->[likes].

I want to use ANTLR to build the program(in Java) that parse some sentence. I just finished add ANTLR into eclipse, but the guide in http://www.antlr.org/wiki is very difficult for my case.

1

1 Answers

1
votes

ANTLR is not well-suited to natural language processing because it only allows a sentence to be interpreted one way.