/** Executes this onto gazetteer over a pre-set document * @throws ExecutionException if something goes wrong with the execution */ @Override public void execute()throws ExecutionException { if (null == gaz) { throw new ExecutionException("gazetteer not initialized (null)."); } gaz.setDocument(document); gaz.setAnnotationSetName(annotationSetName); gaz.setEncoding(encoding); gaz.setCorpus(corpus); gaz.execute(); } // execute