Raspi 3B+に外付けHDDをつなげてNextCloudでファイルサーバーを作成[NextCloud]

まずは下記のサイトを参考にRaspiにUbuntu server 18を導入した.
gihyo.jp
次に下記のブログを参考に外付けHDDをRaspiにマウント. マウントは/mediaディレクトリにすること. ...
2枚のプロットを連続して出力する方法[Matplotlib]

plt.scatter(transformed_pca, transformed_pca)plt.xlim(-0.1,1.1)plt.ylim(-0.1,1.1)plt.savefig('./pca.png')plt.figure(2)pl ...
Flairで自前のELMoモデルを読み込む方法[Flair]

from flair.embeddings import ELMoEmbeddingsfrom flair.data import Sentencesentence = Sentence(phrase)# Preparating ELMo ...
最近よく入力するコマンド[docker]

docker run -it –name “hoge” -v/home/ubuntu:/root/tmp -p 8080:80 hoge
Skype会議の招待はHTML形式でないとリンクが取れない[Skype]

Outlookで
のボタンを押すと,簡単にSkype会議を設定できるのだが,
デフォルト設定のテキスト形式でメールを送ると,以下のように文字化けしてしまう.
こういうときは,ファイル > オプショ ...
コマンドプロンプトからファイルエクスプローラーを開く方法[Mac][Windows]

カレントディレクトリでエクスプローラーを開くためのコマンドを紹介.
WindowsとMacでコマンドが異なる.
for windows
explorer .for mac
open .sudo pythonでnot foundになる時はpythonの絶対パスを調べよう[Python]

sudo python xxx.pyでスクリプトを実行した時,ライブラリが見つからないことがあった.
こういう時はwhichコマンドを使って,普段のpythonの絶対パスを調べる.
which python>/ ...EntityRulerを使って深層学習ベースのNERにルールを追加[sciSpacy]

本記事では、Spacyにおける標準のNER(en_core_sci_sm)に、ルールを追加する方法について紹介する。これができると、NERの結果が少し物足りないときにルールで微調整することができるため、覚えておくと便利だと思う。
Latexのbibでet al.を書く方法[Latex]

@inproceedings{suzuki2019,title={Hoge Hoge Title},author={Taro Suzuki and Jiro Suzuki and Saburo Suzuki and others},book ...
新しい環境にPython環境を準備[python]

Ubuntu16.04だと,2系と3系のpythonが混在しているため,pyenvで環境を作る.
必要なパッケージのインストール
sudo apt install -y git openssl libssl-dev ...