should add the encoding="utf8" when read path_or_trie or it will report error
should add the encoding="utf8" when read path_or_trie or it will report error,please check!
but it works well in my ubuntu, both python2 and python3 ~
may be you are on linux platform, but in windows platform,the default reading encoding="gbk", so add the encoding="utf8" may more convenient for windows platform user to use your tool.
but "open" has no "encoding" parameter. do you mean using "codecs.open" ?
with open(path_or_trie,encoding='utf8') as f: #line 53
with open(path_or_trie,encoding='utf8') as f: #line 53
yes! I have submit a PR.