Skip to content

Commit

Permalink
close STDOUT of the Lemmatizer using the :out => File:NULL option
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Mar 16, 2022
1 parent 29240aa commit 2ebcb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ncbo_annotator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ebcb23

Please sign in to comment.