I would like to take a set of English sentences and convert those to a set of relations. e.g.
"A pilot flies an airplane." would map to something like the following relation:
flies(pilot, airplane)
"Bob is the father of Alice and Doug." would map to
father(Bob, Alice)
father(Bob, Doug)
I know that I have seen a python library to do something like this before, but despite all of my searching I haven't been able to find that. I have never done NLP programing before, so I may be using terms incorrectly. My apologies.
UPDATE: This is not an effort to generate Prolog, but to generate binary (and other) facts about a universe of discourse. These facts could then be inserted into an object-role model, and help to generate a database schema. The "flies" fact above is just to illustrate, and there is no requirement around the syntax of the output. It just has to be a regular output.
In linguistic terms, I guess I would like to see a verb phrase and two noun phrases to capture a binary fact. The way those are structured is not as important as being able to discern the structure in an automated manner.