I am writing a language parser using prolog.
I am using possible variables for example:
Noun_phrase --> poss_deter (PD), poss_noun(PN).
poss_noun(N)-->n(N).
poss_noun(PN)-->[ ].
if a noun isnt being parsed then the poss_noun-->[ ] is used. However when outputting the noun phrase this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.