Expand Japanese requirements warning (#5572)

Include explicit install instructions in Japanese requirements warning.
This commit is contained in:
adrianeboyd 2020-06-11 13:47:37 +02:00 committed by Adriane Boyd
parent 44967a3f9c
commit 4724fa4cf4

View File

@ -46,7 +46,10 @@ def try_sudachi_import(split_mode="A"):
return tok
except ImportError:
raise ImportError(
"Japanese support requires SudachiPy: " "https://github.com/WorksApplications/SudachiPy"
"Japanese support requires SudachiPy and SudachiDict-core "
"(https://github.com/WorksApplications/SudachiPy). "
"Install with `pip install sudachipy sudachidict_core` or "
"install spaCy with `pip install spacy[ja]`."
)