Closed himkt closed 4 years ago
Thanks for the bug report! This is definitely related to the Cythonization, sorry about that. I'll take a look at fixing it.
@himkt I have released v0.4.7 which includes the fix by @polm.
Please have a try with this version.
Thank you for the really quick response. @sorami @polm I confirmed that it works fine.
>>>
root@19933a16df1e:/work# python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sudachipy
>>> sudachipy.__version__
'0.4.7'
>>> from sudachipy import dictionary, tokenizer
>>> _tokenizer = dictionary.Dictionary().create()
>>> _tokenizer = dictionary.Dictionary().create()
Great to hear that it works! All credit goes to @polm .
Summary
Hello, thank you for maintaining the amazing text processing toolkit SudachiPy!
I found an error occurs when it tries to create
tokenizer
twice. I'm not sure what is the route cause but it doesnt' happen 28 days and does today. I suspect it related to some changes introduced inv0.4.6
, as it doesn't reproduce inv0.4.5
.Reproduction