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 GitHub
parent fe167fcf7d
commit 556895177e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ def try_sudachi_import(split_mode="A"):
return tok return tok
except ImportError: except ImportError:
raise 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]`."
) )