Martinsos / edlib

Lightweight, super fast C/C++ (& Python) library for sequence alignment using edit (Levenshtein) distance.
http://martinsos.github.io/edlib
MIT License
492 stars 162 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character '\x88' in position 0: ordinal not in range(128) when edlib.align(src, tar, task="path") #185

Closed clearloveclearlove closed 2 years ago

clearloveclearlove commented 2 years ago

File "E:/reorder_bert/str_align.py", line 24, in read_json result = edlib.align(src, tar, task="path") File "edlib.pyx", line 95, in edlib.align File "edlib.pyx", line 48, in edlib._map_to_bytes File "edlib.pyx", line 47, in edlib._map_to_bytes.lambda UnicodeEncodeError: 'ascii' codec can't encode character '\x88' in position 0: ordinal not in range(128)

i want to know how to solve it thanks

Martinsos commented 2 years ago

Thanks for reporting this! This is same as https://github.com/Martinsos/edlib/issues/184, so I will close this one -> please follow the other one for resolution.