The heideltime-kit is itself a Maven project. So you can add the heideltime-kit project as a dependency. (In Netbeans, right-click Dependencies, → Add Dependency → Open Projects (make sure the project is open first) → HeidelTime)
Then move the config.props file to the src / main / resources project folder. Set the path to the treetagger inside config.props.
Regarding the use of classes, you want to create an instance of HeidelTimeStandalone (see de.unihd.dbs.heideltime.standalone.HeidelTimeStandalone.java) using POSTagger.TREETAGGER as the posTagger parameter and the hard path to your src / main / resources / config.props file as the configPath parameter. For instance,
heidelTime = new HeidelTimeStandalone(Language.ENGLISH, DocumentType.COLLOQUIAL, OutputType.TIMEML, "path/to/config.props", POSTagger.TREETAGGER, true);
Then, to use HeidelTime for text processing, you can simply call the process function:
String result = heidelTime.process(text, date);
source share