We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c81748 commit 4dff532Copy full SHA for 4dff532
src/sphinxnotes/snippet/keyword.py
@@ -23,12 +23,17 @@ class Extractor(object):
23
24
def __init__(self):
25
# Import NLP libs here to prevent import overhead
26
+ import logging
27
from langid import rank
- from jieba import cut_for_search
28
+ from jieba import cut_for_search, setLogLevel
29
from pypinyin import lazy_pinyin
30
from stopwordsiso import stopwords
31
from wordsegment import load, segment
32
33
+ # Turn off jieba debug log.
34
+ # https://github.com/fxsjy/jieba/issues/255
35
+ setLogLevel(logging.INFO)
36
+
37
load()
38
self._detect_langs = rank
39
self._tokenize_zh_cn = cut_for_search
0 commit comments