MLN generative learning

This commit is contained in:
Vitor Santos Costa
2013-07-29 17:56:32 -05:00
parent bfb4cef8f9
commit 24de22eeb5
3 changed files with 331 additions and 185 deletions

View File

@@ -184,7 +184,7 @@ new_skolem(Sk, D) :-
functor(Sk, N, A),
functor(NSk, N, A),
% [f,t] is special for evidence
( D = [f,t] -> assert((evidence(NSk, 1) :- call(user:NSk))) ; true ),
( D = [f,t] -> assert((evidence(NSk, 1) :- user:NSk)) ; true ),
interface_predicate(NSk),
assert(skolem(NSk, D)).