Closed XVilka closed 4 years ago
They will be exposed in Python as Term objects.
You can use the term
specifier in the problog_export decorator.
@problog_export("+term", "+term", "+term", "-term")
def predicate1(a1, a2, a3):
print(a1.functor, a1.args)
Would be beneficial to add this in the documentation, I think.
There is some documentation on this here: Calling Python From ProbLog
Ok. Thanks! I think can be closed then.
So the predicate will have functors as the arguments? Something like
How it would look from the Python side with
@problog_export
decorator?