Skip to content

Commit

Permalink
Update hocr_wordfreq.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Dec 30, 2023
1 parent 1e3c5ae commit 24c6616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hocr_tools_lib/tools/hocr_wordfreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def word_frequencies(
) -> Generator[str, None, None]:
doc = html.parse(hocr_in)
body = doc.find('//body')
assert text is not None
assert body is not None
text = body.text_content().strip()
if case_insensitive:
text = text.lower()
Expand Down

0 comments on commit 24c6616

Please sign in to comment.