Running on Windows
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#
pip install malaya --no-deps pip install tensorflow>=1.15
If we skipped YouTokenToMe, we not able to use,
True Case Tensorflow deep learning models.
Multinomial model in emotion analysis.
Multinomial model in sentiment analysis.
Multinomial model in subjectivity analysis.
Multinomial model in toxicity analysis.
Jawi-to-Rumi Tensorflow deep learning models.
Rumi-to-Jawi Tensorflow deep learning models.
Syllable Tensorflow deep learning models.
Language detection Tensorflow deep learning models.
Or you still need these models, you need to install Cython,
pip install cython
And install Visual Studio from https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019, and choose Visual Studio 2019 Build Tools, vs_buildtools.exe.
Read more from https://github.com/VKCOM/YouTokenToMe/issues/96,
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.
Unable to use any T5 Tensorflow models#
T5 depends on tensorflow-text, currently there is no official tensorflow-text binary released for Windows. So no T5 model for Windows users.
But you can use T5 HuggingFace models, for an example,