Skip to content
Snippets Groups Projects
Commit 0d141302 authored by Alice Brenon's avatar Alice Brenon
Browse files

Move constant instruction out of a nested loop

parent 66c7f8a2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment