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
>>> import jieba
>>> import synonyms
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/.local/lib/python3.8/site-packages/synonyms/__init__.py", line 14, in <module>
from .synonyms import *
File "/home/ubuntu/.local/lib/python3.8/site-packages/synonyms/synonyms.py", line 56, in <module>
from .jieba import posseg, analyse
File "/home/ubuntu/.local/lib/python3.8/site-packages/synonyms/jieba/posseg/__init__.py", line 257, in <module>
dt = POSTokenizer(jieba.dt)
AttributeError: module 'jieba' has no attribute 'dt'
操作系统
Ubuntu 20.04
Python 3.8
jieba version: 0.42.1
synonyms version: 3.16.0
The text was updated successfully, but these errors were encountered:
问题重现
如果先import jieba,然后再import synonyms会报如下错误:
操作系统
The text was updated successfully, but these errors were encountered: