Skip to content

Commit

Permalink
Fix typo in wiki_generate_tsv.py (#1404)
Browse files Browse the repository at this point in the history
occurences -> occurrences
  • Loading branch information
eltociear authored Jan 14, 2023
1 parent 545169a commit ec37c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dpr/wiki_generate_tsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
# TABLETOREPLACE was added in the WikiExtractor step, where tables were replaced with the string TABLETOREPLACE so that they were included in the processed text corpus as TABLETOREPLACE, instead of gotten rid of by default.
while table_found and ("TABLETOREPLACE" in text or len(p_tables) > table_num + 1):
# Trying to put the tables back in the appropriate location in the text
# However, might have parsed more tables in some article than there are occurences of TABLETOREPLACE in the article for some reason. Add these extra linearized tables to end of text.
# However, might have parsed more tables in some article than there are occurrences of TABLETOREPLACE in the article for some reason. Add these extra linearized tables to end of text.
table_num +=1
table_text = ""
if len(p_tables) < table_num+1:
Expand Down

0 comments on commit ec37c5e

Please sign in to comment.