Merge pull request #667 from ZhengZixiang/patch-1

fix the error about importing ChineseAnalyzer
This commit is contained in:
Sun Junyi 2018-09-20 10:39:29 +08:00 committed by GitHub
commit 4c8479cfa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from whoosh.index import create_in,open_dir
from whoosh.fields import *
from whoosh.qparser import QueryParser
from jieba.analyse import ChineseAnalyzer
from jieba.analyse.analyzer import ChineseAnalyzer
analyzer = ChineseAnalyzer()