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)