I am new to GATE NLP. I am working on an application which works on GATE NLP
.
So, I have created a pipeline, and i am loading it only once in application by creating singleton object. So, Because of this performance of application has increased but when I make any changes in ontology or gazetteer and re-run the application then it is not considering the newly added words,because i made my object singleton through I am loading my pipeline so it considers previously loaded gazetteer and ontology.So,
I used the following code using it it is taking updated Gazetteer, but not ontology.
application = CorpusControllerSingleton.getInstance(gapFilePath).getApplicationObject();
Iterator<ProcessingResource> it = application.getPRs().iterator();
if(isReload){
System.out.println("processing resources------>"+it.next());
while(it.hasNext()){
ProcessingResource pr = it.next();
if(pr.getName().equals("RzCIS") || pr.getName().equals("RzCs")) {
System.out.println("PR initialization--->" +pr.getFeatures());
pr.reInit();
}
}
}
Can anyone explain me how to re-init ontology ?