Šis repozitorijs tika arhivēts 2023-08-20. Ir iespējams aplūkot tā failus un to konēt, bet nav iespējams iesūtīt izmaiņas, kā arī izveidot jaunas problēmas vai izmaiņu pieprasījumus.
Files
yap-6.3/packages/cplint/em
Fabrizio Riguzzi be449b3aef updated cplint
2011-10-22 16:33:04 +02:00
..
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00
2011-10-22 16:33:04 +02:00

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/