Skip to content

Instantly share code, notes, and snippets.

@darrensapalo
Created June 18, 2018 17:06
Show Gist options
  • Save darrensapalo/fcebfd4d2a9ac79f20287a9b81b5da4e to your computer and use it in GitHub Desktop.
Save darrensapalo/fcebfd4d2a9ac79f20287a9b81b5da4e to your computer and use it in GitHub Desktop.
Semantic parsing
%%% This output was generated by the following command:
%%% /home/gingerbeard/candc/bin/boxer --stdin --semantics fol
%%% I want food
id(1,1).
fol(1,some(A,and(n1person(A),some(B,some(C,and(r1theme(B,C),and(r1agent(B,A),and(v1want(B),n1food(C))))))))).
First order logic representation
There exists some A
and that A
is a person
There exists some B
There exists some C
and
there is a relation/theme/frame between B and C
Where A (person) is the agent of event B
and B is a verb, the event 'want'
and C is a noun, the direct object 'food'
fol(
1,
some(
A,
and(
n1person(A),
some(B,
some(C,
and(
r1theme(B,C),
and(
r1agent(B,A),
and(
v1want(B),
n1food(C)
)
)
)
)
)
)
)
).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment