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
在Windows本机(python3.6)上运行么得问题,在Ubuntu服务器(python3.7)上报如下错误: Traceback (most recent call last): File "lan_det.py", line 9, in <module> print(lan_det(text)) File "lan_det.py", line 6, in lan_det return langid.classify(text) File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 105, in classify load_model() File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 164, in load_model identifier = LanguageIdentifier.from_modelstring(model) File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 176, in from_modelstring z = bz2.decompress(b) File "/usr/local/lib/python3.7/bz2.py", line 346, in decompress res = decomp.decompress(data) TypeError: function takes exactly 0 arguments (1 given)
求大佬们指点
The text was updated successfully, but these errors were encountered:
在Windows本机(python3.6)上运行么得问题,在Ubuntu服务器(python3.7)上报如下错误:
Traceback (most recent call last): File "lan_det.py", line 9, in <module> print(lan_det(text)) File "lan_det.py", line 6, in lan_det return langid.classify(text) File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 105, in classify load_model() File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 164, in load_model identifier = LanguageIdentifier.from_modelstring(model) File "/home/env/rfh_01/lib/python3.7/site-packages/langid-1.1.6-py3.7.egg/langid/langid.py", line 176, in from_modelstring z = bz2.decompress(b) File "/usr/local/lib/python3.7/bz2.py", line 346, in decompress res = decomp.decompress(data) TypeError: function takes exactly 0 arguments (1 given)
求大佬们指点
The text was updated successfully, but these errors were encountered: