diff --git a/scripts/confusionMatrices.py b/scripts/confusionMatrices.py index ff0c990c75c50615104bca1f2dbe6526c370d257..a850740e3821ceeb21b1cb3e5bcd0610946bbd6a 100644 --- a/scripts/confusionMatrices.py +++ b/scripts/confusionMatrices.py @@ -28,9 +28,9 @@ def __syntax(this): sys.exit(1) def __compute(sourcePath, ns, ranksToTry, metricNames, outputDir): + source = data.load(sourcePath) for n in ns: for ranks in ranksToTry: - source = data.load(sourcePath) vectorizer = topNGrams(source, n, ranks) for name in metricNames: imagePath = preparePath(outputDir, source, n, ranks, name)