Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Nov 16, 2023
1 parent e42beeb commit 2b3e5f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ pandas
regex
bump-my-version
supermat
pytest
tqdm
pytest
4 changes: 1 addition & 3 deletions scripts/xml2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from pathlib import Path
from typing import List

from tqdm import tqdm

from src.supermat.supermat_tei_parser import process_file_to_json
from src.supermat.utils import get_in_paths_from_directory

Expand All @@ -21,7 +19,7 @@ def process_file(finput, use_paragraphs=False):

filename = Path(finput).name
passages = json['passages']
for passage_id, passage in tqdm(enumerate(passages)):
for passage_id, passage in enumerate(passages):
passage_common_parts = {
'id': passage_id,
'filename': filename,
Expand Down

0 comments on commit 2b3e5f5

Please sign in to comment.