index being closed caused errors, so its not closing anymore

This commit is contained in:
christian 2021-11-30 19:28:01 +01:00
parent 5273eb3b6e
commit 9324910798

View File

@ -56,7 +56,7 @@ public class PipelineJMWESingleton {
throw new RuntimeException("unable to open IMWEIndex index: " + e + "\n"); throw new RuntimeException("unable to open IMWEIndex index: " + e + "\n");
} }
detector = getDetector(index, detectorName); detector = getDetector(index, detectorName);
index.close(); //index.close();
} }
public static void getINSTANCE() { public static void getINSTANCE() {
@ -77,7 +77,7 @@ public class PipelineJMWESingleton {
//annoStr.set(JMWEAnnotation.class, mwes); //annoStr.set(JMWEAnnotation.class, mwes);
sentence.set(JMWEAnnotation.class, mwes); sentence.set(JMWEAnnotation.class, mwes);
} }
index.close(); //index.close();
return annoStr; return annoStr;
} }