Skip to content

Hello World! code and additional examples

Roberto Zanoli edited this page Oct 15, 2014 · 1 revision

With EOP we provide some examples that you can try to become more confident with EOP. With them you will see how to pre-process a data set, how to train a new model and how to annotate a data set. The examples are distributed as a Maven project that you have to import in Eclipse before running them.

  1. Download the zip file containing the Maven project:
    Maven project with examples

  2. Copy it into you working directory (e.g. your home directory)

> cp /home/user_name/Downloads/myProject-EOPv1.1.4.tar.gz ~
  1. Unzip the file
> tar -xvzf myProject-EOPv1.1.4.tar.gz
  1. Import the Maven project into Eclipse

Maven projects can be imported using File → Import → Maven → Existing Maven Projects

  1. Run one of the examples in the project (e.g. Hello World!)
  • Check the method main in the code and set the value of the reported variable so that they correspond to the path where EOP has been installed.

  • Right click on HelloWorld.java in myProject/src/main/java and the Run As → Java Application

Clone this wiki locally