LLM Installation
LLM Installation
1 Introduction
Learner of local models (LLM) is implemented in Java. The algorithm uses
Prolog as a module for calculating feature values. The communication with
Prolog is done by means of a 2p.jar located in the library. It is fully integrated
and, therefore, there is no demand on users to set anything for this interface
to work properly.
2 Prerequisite
The user needs Java Runtime Environment (JRE) 1.7 to run the code and
Java Development Kit (JDK) 1.7 or newer to compile it. For compiling the
code and generating executable jar, the user needs Apache Maven 3.0.5 or
newer. For JRE, JDK and Apache Ant, the most stable versions for your
platform are the best choice.
3 Instructions
The following installation instructions are valid for all platforms that support
Java and Apache Maven. In order to generate needed executable jar, go to the
main folder “HybridRDN”. Then run the following command:
This command will compile all the classes and generate an executable jar
llm.jar in folder target.
1
4 Test
In order to test whether the executable jar is functional perform this little test
in the terminal. All the needed files are provided in folder UniversityExample
/data university .
5 Wherefromhere?
As mentioned before, the runnable jar file created above runs the main class of
hybrid.custom structure learner.Custom StructureLearner class. There
are some important parts of this class that a user can change to run the al-
gorithm for the network and data he/she wants:
2
"/test/","interp", "pl",ntw);
The user should specify the data used for his/her purposes.
The rest of the main class should stay more or less the same. When the
classes are changed for the purposes of the user, a new executable jar should
be made with the procedure explained above.