diff --git a/pyproject.toml b/pyproject.toml index 4e6b345..1fe0301 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dependencies = [ # CUSTOM DEPENDENCIES START "langid", - "jieba", + "jieba-next", "python-pinyin", "pyxdg", "stopwordsiso", diff --git a/src/sphinxnotes/snippet/keyword.py b/src/sphinxnotes/snippet/keyword.py index 80d45f8..3cb4313 100644 --- a/src/sphinxnotes/snippet/keyword.py +++ b/src/sphinxnotes/snippet/keyword.py @@ -24,7 +24,7 @@ def __init__(self): # Import NLP libs here to prevent import overhead import logging from langid import rank - from jieba import cut_for_search, setLogLevel + from jieba_next import cut_for_search, setLogLevel from pypinyin import lazy_pinyin from stopwordsiso import stopwords from wordsegment import load, segment