From 9324910798172e6fa626de5845f1cfd4c8e10f12 Mon Sep 17 00:00:00 2001 From: christian Date: Tue, 30 Nov 2021 19:28:01 +0100 Subject: [PATCH] index being closed caused errors, so its not closing anymore --- .../src/main/java/FunctionLayer/PipelineJMWESingleton.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArtificialAutism/src/main/java/FunctionLayer/PipelineJMWESingleton.java b/ArtificialAutism/src/main/java/FunctionLayer/PipelineJMWESingleton.java index c2c2c66f..44a295f7 100644 --- a/ArtificialAutism/src/main/java/FunctionLayer/PipelineJMWESingleton.java +++ b/ArtificialAutism/src/main/java/FunctionLayer/PipelineJMWESingleton.java @@ -56,7 +56,7 @@ public class PipelineJMWESingleton { throw new RuntimeException("unable to open IMWEIndex index: " + e + "\n"); } detector = getDetector(index, detectorName); - index.close(); + //index.close(); } public static void getINSTANCE() { @@ -77,7 +77,7 @@ public class PipelineJMWESingleton { //annoStr.set(JMWEAnnotation.class, mwes); sentence.set(JMWEAnnotation.class, mwes); } - index.close(); + //index.close(); return annoStr; }