From 7398f0c7ab4a3b7f2ba9714e5c84099a16791390 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Wed, 29 Oct 2025 18:56:05 +0800 Subject: [PATCH] chore: Use jieba-next instead of jieba --- pyproject.toml | 2 +- src/sphinxnotes/snippet/keyword.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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