This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/cplint/em
Fabrizio Riguzzi be449b3aef updated cplint 2011-10-22 16:33:04 +02:00
..
Artistic updated cplint 2011-10-22 16:33:04 +02:00
README updated cplint 2011-10-22 16:33:04 +02:00
em.pl updated cplint 2011-10-22 16:33:04 +02:00
inference.pl updated cplint 2011-10-22 16:33:04 +02:00
sa1.cpl updated cplint 2011-10-22 16:33:04 +02:00
sa1.kb updated cplint 2011-10-22 16:33:04 +02:00
sa1.l updated cplint 2011-10-22 16:33:04 +02:00
sa1.rules updated cplint 2011-10-22 16:33:04 +02:00
sp1.cpl updated cplint 2011-10-22 16:33:04 +02:00
sp1.kb updated cplint 2011-10-22 16:33:04 +02:00
sp1.l updated cplint 2011-10-22 16:33:04 +02:00
sp1.rules updated cplint 2011-10-22 16:33:04 +02:00

README

This folder contains an EM algorithm based on cplint

To execute it, load em.pl with

:- use_module(library('cplint/em')).

and run

:- em(filestem).

in a directory containing filestem.kb, filestem.bg and filestem.l.
You will find the output in filestem.rules.

See the files sa1 and sp1 in the folder as examples (they are the first fold of IMDB for target predicates sameauthor and sameperson)

In the .l file you should specify input and output (taget predicates) in the form

input(pred/arity).

output(pred/arity).

See also http://sites.unife.it/rib/