Skip to content

Commit

Permalink
fix: pass args.data_folder to corpus_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
BobBorges committed Jan 14, 2025
1 parent c0569bd commit 204dd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyriksdagen/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def common_args(args):
for py in args.parliament_year:
args.specific_files.extend(glob(f"{args.data_folder}/{py}/*.xml"))
else:
args.specific_files = sorted(list(corpus_iterator(args.doctype, start=args.start, end=args.end)))
args.specific_files = sorted(list(corpus_iterator(args.doctype, corpus_root=args.data_folder, start=args.start, end=args.end)))
if args.specific_files is not None and len(list(args.specific_files)) != 0:
args.specific_files = sorted(list(args.specific_files))
return rename_file_list(args)
Expand Down

0 comments on commit 204dd6c

Please sign in to comment.