Merge pull request #134 from Honghe/master

Fix a bug about can not import ChineseAnalyzer
This commit is contained in:
Sun Junyi 2014-02-16 20:08:42 +08:00
commit 6946b00f14

4
jieba/analyse/__init__.py Normal file → Executable file
View File

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