-
Notifications
You must be signed in to change notification settings - Fork 67
Development Setup
In this section, we will detail how to set up the working development environment you will need in order to participate in the development of HeidelTime.
As HeidelTime is written entirely in Java, and Eclipse is the most popular Java IDE, we will focus on setting you up with this particular IDE. If you choose to use a different IDE, you should be able to implement our instructions relatively easy in an analogous fashion in that IDE.
By the end of this tutorial, you should have a working copy of HeidelTime in your IDE and should be able to start implementing changes or features to HeidelTime.
You can grab a copy of Eclipse at http://eclipse.org/downloads/. You do not need to get a specific version or abandon your current installation of Eclipse; if you don't have one already, the classic version should be adequate. Under Linux, you can just get Eclipse from your package manager.
As HeidelTime is under steady development, any changes you make should -- if possible -- be made against our latest revisions in the version control system. This makes it way easier to integrate your changes into our current codebase if you choose to share your work with us.
We use Git, a distributed version control system. You should grab a copy of it and install it on your operating system; any of MacOSX, Windows or Linux have installation candidates.
If you have not checked out HeidelTime's code from the repository before, you should get a fresh copy by cloning the official repository. From a command line, do
$ git clone git@github.com:HeidelTime/heideltime.git
This will create a folder called heideltime
in your current directory and download all of the files residing in the repository as well as a history of previous changes done by us.
At this point, we will import the source code into an Eclipse project. To do that in a proper fashion, follow these steps:
- In Eclipse, go to File -> New -> Project..., create a Java Project.
- Give the project a name (i.e.,
heideltime
), untick Use default location and enter or browse to the location of theheideltime
folder we created during the cloning process. Hit Next. * In the Source tab, make sure that thesrc/
folder is marked as a source folder and that the Default output folder is named "class
", not "bin
". * In the Libraries tab, make sure thatuima-core.jar
from thelib/
folder is added as a library.
At this point, you should have a project filled with source code and are almost ready to get going.
Note that as of HeidelTime 1.3, you will need copies of the StanfordPOSTaggerWrapper .jar
file and the JVnTextProWrapper bin
to be linked as Libraries inside your Eclipse project for all error messages to disappear. Eclipse will still be able to compile everything but those two wrappers without them, though.
Once you have changed something, before you try it out in the context of a UIMA pipeline, you will want to do a clean build at least once by going to Project -> Clean....
And that is all you need in terms of basic setup.
Once you are all set up, you can take a look at ArchitecturalOverview to better understand HeidelTime's source code.
To test your changes' impact on the results that HeidelTime produces, take a look at ReproduceEvaluationResults to set up an obstacle course to run HeidelTime through. Alternatively, take a look at readme.txt
in the doc/
folder, which contains more detailed instructions on how to set up a test.