Install fugashi and dictionaries
mainfugashi is a Cython wrapper for MeCab. It provides wheels for Linux, OSX (Intel), and Win64. You must install a dictionary to use it.
For a lightweight setup, install unidic-lite. For full Unidic support (recommended for serious processing), you must install the unidic extra and run the download command.
Note: If you are on a platform without wheels (e.g., Alpine Linux, PowerPC, or Windows 32-bit), you must install MeCab manually from source first.
# Install with the lightweight dictionary
pip install 'fugashi[unidic-lite]'
# Install with the full UniDic (requires extra download step)
pip install 'fugashi[unidic]'
python -m unidic download