You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clear and concise description of what the bug is.
Steps/Code to reproduce bug
I'm seeing the following error.
File "/usr/local/lib/python3.10/dist-packages/nemo_text_processing/text_normalization/normalize.py", line 172, in __init__
self.tagger = ClassifyFst(
File "/usr/local/lib/python3.10/dist-packages/nemo_text_processing/text_normalization/fr/taggers/tokenize_and_classify.py", line 85, in __init__
self.whitelist = WhiteListFst(input_case=input_case, deterministic=deterministic, input_file=whitelist)
File "/usr/local/lib/python3.10/dist-packages/nemo_text_processing/text_normalization/fr/taggers/whitelist.py", line 44, in __init__
graph = _get_whitelist_graph(input_case, get_abs_path("data/whitelist.tsv"))
File "/usr/local/lib/python3.10/dist-packages/nemo_text_processing/text_normalization/fr/taggers/whitelist.py", line 38, in _get_whitelist_graph
whitelist = load_labels(file)
File "/usr/local/lib/python3.10/dist-packages/nemo_text_processing/text_normalization/fr/utils.py", line 41, in load_labels
labels = list(csv.reader(label_tsv, delimiter="\t"))
File "/usr/lib/python3.10/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 1: ordinal not in range(128)
Describe the bug
A clear and concise description of what the bug is.
Steps/Code to reproduce bug
I'm seeing the following error.
The issue is similar to this: #3452
Expected behavior
The expected behavior is to load without an error.
Environment overview (please complete the following information)
Installed with pip.
Additional context
I already have a proposed fix. I'll be submitting a pull request shortly.
The text was updated successfully, but these errors were encountered: