Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]

runs-on: "ubuntu-latest"

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
click
jinja2
lxml
uniseg >= 0.8.0
uniseg >= 0.9.1
numpy
colorama
MarkupSafe
Expand Down
6 changes: 3 additions & 3 deletions src/dinglehopper/word_error_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def patch_word_break():
"""
old_word_break = uniseg.wordbreak.word_break

def new_word_break(c, index=0):
def new_word_break(c):
if 0xE000 <= ord(c) <= 0xF8FF: # Private Use Area
return uniseg.wordbreak.WordBreak.ALETTER
return uniseg.wordbreak.Word_Break.ALetter
else:
return old_word_break(c, index)
return old_word_break(c)

uniseg.wordbreak.word_break = new_word_break
global word_break_patched
Expand Down