The natural language processing library Spacy
officially supports Japanese in 2.2.3.
»Reference: What ’s New in v2.3
So, I decided to use Spacy, which supports Japanese in Google Colab, but I stumbled a little at that time, so I will write an article with a memo.
ja_core_news_lg
, but please change it accordingly.With the following command.
!pip install --upgrade spacy
With the following command.
!python -m spacy download ja_core_news_lg
If you try to use Spacy
as it is, an error will occur. Let's reboot gently.
You should be able to use it with this! (^^)!
import spacy
print(spacy.__version__)
nlp = spacy.load('ja_core_news_lg')
Recommended Posts