mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
Merge pull request #134 from Honghe/master
Fix a bug about can not import ChineseAnalyzer
This commit is contained in:
commit
6946b00f14
4
jieba/analyse/__init__.py
Normal file → Executable file
4
jieba/analyse/__init__.py
Normal file → Executable 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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user