mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
fix a bug about ImportError
This commit is contained in:
parent
d63140fe5e
commit
d691d91674
@ -1,6 +1,9 @@
|
||||
import jieba
|
||||
import os
|
||||
try:
|
||||
from analyzer import ChineseAnalyzer
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
_curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) )
|
||||
f_name = os.path.join(_curpath,"idf.txt")
|
||||
|
Loading…
x
Reference in New Issue
Block a user