I’m trying to work Aleph with Swi-prolog. Are there any one could please tell me how to run this program if I have a file named train.pl (including the background and positive and negative examples.) What can I do to induce my program and get the output? By the way, I have already downloaded Aleph.pl for my program. When I ran it, it showed like this: ERROR: c:/users/mac/downloads/aleph.pl:97: Wrong context: arithmetic_function/1 can only be used in a directive
0
votes
Where is the aleph program? What is in the line 97, and neighbour lines?
- user31264
I downloaded the aleph.pl from this link :comlab.ox.ac.uk/oucl/research/areas/machlearn/Aleph/aleph.pl
- LU.CAO
This is a program of 10,000+ lines, we are not going to debug it for you. Produce stackoverflow.com/help/mcve
- user31264
I want to know I downloaded the Aleph from official website and why there are such errors? Where did you obtain the Aleph ?
- LU.CAO
I didn't. If you don't know if it is the official version, you better contact the author.
- user31264
1 Answers
0
votes
I also had similar problems. However, after some googling, I found a github repository which contains the aleph script that actually works (prolog/aleph.pl). However, the manual could be more detailed (at least for a newbie like me). A minimal working example that I have managed to run is the trains example (prolog/examples/train.pl) and I did the following:
- Put the
aleph.plscript into some directorypath/to/dir - Put the
train.plscript into the same directory. - Executing the following commands, one by one:
working_directory(_, 'path/to/dir').consult('aleph.pl').consult('trains.pl').induce.
I ignored some errors and warnings that have appeared when executing the command consult('trains.pl').:
ERROR: path/to/dir/train.pl:16:
ERROR: source_sink `library(aleph)' does not exist
Warning: path/to/dir/train.pl:16:
Warning: Goal (directive) failed: user:use_module(library(aleph))