fix a bug about ImportError

pull/81/head
Sun Junyi 12 years ago
parent d63140fe5e
commit d691d91674

@ -1,6 +1,9 @@
import jieba import jieba
import os import os
try:
from analyzer import ChineseAnalyzer from analyzer import ChineseAnalyzer
except ImportError:
pass
_curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) ) _curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) )
f_name = os.path.join(_curpath,"idf.txt") f_name = os.path.join(_curpath,"idf.txt")

Loading…
Cancel
Save