From 2ebcb237008958d7a8eb45319cd986312a814dae Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Wed, 16 Mar 2022 15:30:59 +0100 Subject: [PATCH] close STDOUT of the Lemmatizer using the :out => File:NULL option --- lib/ncbo_annotator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ncbo_annotator.rb b/lib/ncbo_annotator.rb index e87680ab..f48043ed 100644 --- a/lib/ncbo_annotator.rb +++ b/lib/ncbo_annotator.rb @@ -137,7 +137,7 @@ def generate_dictionary_file() # Create lemmatized dic file indexStop=Annotator.settings.mgrep_dictionary_file.length-5; dicName=Annotator.settings.mgrep_dictionary_file[0..indexStop] - wasGood = system( "java -jar "+Annotator.settings.lemmatizer_jar+"/Lemmatizer.jar "+dicName+".txt "+dicName+"-lem.txt false") + wasGood = system( "java -jar "+Annotator.settings.lemmatizer_jar+"/Lemmatizer.jar "+dicName+".txt "+dicName+"-lem.txt false ", :out => File::NULL) if (!wasGood) raise Exception, "Generating lemmatized dictionary failed." else