Running on Windows#

UnicodeDecodeError: ‘charmap’ codec can’t decode byte#

To solve this,

Windows Settings > Administrative language settings > Change system locale.

Checked Beta: Use Unicode UTF-8 for worldwide language support.

Restarted, everything works well.

Full dicussion check issue 25.

YouTokenToMe failed to build#

YouTokenToMe required cython and Microsoft Visual C++ 14.0 are required to compile and usually Windows users will break on this part, so we need to install Malaya without YouTokenToMe.

pip install malaya --no-deps

If we skipped YouTokenToMe, we not able to use,

  1. Multinomial model in emotion analysis.

  2. Multinomial model in sentiment analysis.

Or you still need these models, you need to install Cython,

pip install cython

And install Visual Studio from, and choose Visual Studio 2019 Build Tools, vs_buildtools.exe.

And follow

Read more from, Visual Studio 2022 with only Python Build Tools is enough.

For now, I do not have a plan to migrate YTTM to another tokenizer library.

[ ]: