Skip to content

Commit

Permalink
fix bug in the supermat parser
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Nov 15, 2023
1 parent 9d5ca23 commit 49c3a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supermat/supermat_tei_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def process_sentences(sentences_grouped_by_paragraphs: list) -> [List, List]:
if 'corresp' in item.attrs:
if 'id' not in span or span['id'] == "":
id_str = str(i + 1) + "," + str(j + 1)
span_id = get_hash(id_str)
span['id'] = get_hash(id_str)
if span['id'] not in dic_source_relationships:
dic_source_relationships[span['id']] = [item.attrs['corresp'].replace('#', ''),
ient,
Expand Down

0 comments on commit 49c3a39

Please sign in to comment.