mirror of https://github.com/explosion/spaCy.git
fixed SyntaxError while checking for jieba
This commit is contained in:
parent
18ec6610dd
commit
d3c54cf39a
|
@ -10,7 +10,7 @@ class Chinese(Language):
|
|||
|
||||
def make_doc(self, text):
|
||||
try:
|
||||
from jieba
|
||||
import jieba
|
||||
except ImportError:
|
||||
raise ImportError("The Chinese tokenizer requires the Jieba library: "
|
||||
"https://github.com/fxsjy/jieba")
|
||||
|
|
Loading…
Reference in New Issue