Skip to content

Commit

Permalink
Actually use "--disk-based" argument
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskrause committed May 29, 2024
1 parent 8ac2167 commit b232f4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion misc/re-optimize-corpora.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@
corpora = f.read().splitlines()

for c in corpora:
subprocess.run([args.annis, args.data_dir, "-c", "corpus " + c , "-c", "re-optimize"])
if args.disk_based:
subprocess.run([args.annis, args.data_dir, "-c", "set-disk-based true", "-c", "corpus " + c , "-c", "re-optimize"])
else:
subprocess.run([args.annis, args.data_dir, "-c", "corpus " + c , "-c", "re-optimize"])

0 comments on commit b232f4d

Please sign in to comment.