2020年2月13日木曜日

RaspbainでMeCabをインストールした時の備忘録

そのうち自然言語処理をやってみたいので、MeCabを、赤石ほか[2020: 48-50]を参考にしてRaspbainに導入してみました。

まずはRaspbainのアップデート。

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt autoclean

次にMeCabのインストール。

sudo apt install mecab
sudo apt install mecab-ipadic
sudo apt install libmecab-dev
sudo apt install mecab-ipadic-utf8
sudo apt install python-mecab

最後にmecab-python3のインストール1

sudo pip install mecab-python3
sudo pip3 install mecab-python3

これで無事使えるようになりました。


参考文献
赤石ほか[2020]:赤石雅典・江澤美保『現場で使える!Python自然言語処理入門』、翔泳社。

参考URL
Raspberry Pi 人工知能ツールをインストール【Python3】

――――――
1. swigがインストールされていないと導入途中でコケると思います。

1 件のコメント:

  1. For instance, we may ask that a buyer sets completely different limits for their playing in} or that they take a break if we consider they are exhibiting elevated risk conduct. We also refrain from displaying and speaking gross sales messages that would make their gaming experience extra harmful. In roulette, the gamers need to guess on either black or pink, a single quantity, groups of numbers, even or odd, or excessive [19–36] or low [1–18] numbers. The croupier then has 1xbet to spin the wheel of the roulette table in just one path and a ball in the opposite direction|the different way|the wrong way}. The ball will start to decelerate as it goes past {a quantity of|numerous|a selection of} deflectors, it will then drop on the wheel and end up in any one of many pockets, that are either pink or black and numbered. It presents {a selection of|quite lots of|a wide selection of} methods to win on a combination of reels of five and twenty-five unique to no different recreation.

    返信削除

Raspberry Pi Zero初期設定

Raspberry Pi Zeroを秋葉原で買ってきたので初期設定します。 朝にイメージを焼いたmicroSDやら、HDMIケーブルやらをセットして起動。 画面に従って無線LANの設定等を済ませます。 アプデは後でsudo apt update等を叩きました。 後は...