From 1d6180f736ffbc09f9e988c828b9cedaf2e198b7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 18 Feb 2023 03:37:53 +0100 Subject: [PATCH] did i just fix all ram problems? --- data/scripts/run-db.sh | 2 +- unimore_bda_6/__main__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/scripts/run-db.sh b/data/scripts/run-db.sh index dced127..2a7f19e 100755 --- a/data/scripts/run-db.sh +++ b/data/scripts/run-db.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash repo=$(git rev-parse --show-toplevel) -mongod --dbpath "$repo/data/db" \ No newline at end of file +mongod --dbpath "$repo/data/db" --wiredTigerCacheSizeGB 2 diff --git a/unimore_bda_6/__main__.py b/unimore_bda_6/__main__.py index 5e20772..1f5842b 100644 --- a/unimore_bda_6/__main__.py +++ b/unimore_bda_6/__main__.py @@ -41,9 +41,9 @@ def main(): for SentimentAnalyzer in [ # ThreeCheat, - NLTKSentimentAnalyzer, TensorflowPolarSentimentAnalyzer, TensorflowCategorySentimentAnalyzer, + NLTKSentimentAnalyzer, ]: slog = logging.getLogger(f"{__name__}.{sample_func.__name__}.{SentimentAnalyzer.__name__}") @@ -116,7 +116,7 @@ def main(): cumulative_evaluation_results += evaluation_results break finally: - datasets_cm.__exit__() + datasets_cm.__exit__(None, None, None) slog.info("Cumulative evaluation results: %s", cumulative_evaluation_results)