Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jieba 版本冲突 #122

Open
Gavintc opened this issue May 11, 2021 · 0 comments
Open

jieba 版本冲突 #122

Gavintc opened this issue May 11, 2021 · 0 comments
Assignees
Labels

Comments

@Gavintc
Copy link

Gavintc commented May 11, 2021

问题重现

如果先import jieba,然后再import synonyms会报如下错误:

>>> 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
@Gavintc Gavintc added the bug label May 11, 2021
@Gavintc Gavintc changed the title Title: 用一句话陈述事情,保证言简意赅,比如问题简述及 root cause 日志语句,更容易获得帮助 jieba 版本冲突 May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants