Raspi 3B+に外付けHDDをつなげてNextCloudでファイルサーバーを作成[NextCloud]
![Thumbnail of post image 036](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
まずは下記のサイトを参考にRaspiにUbuntu server 18を導入した.
gihyo.jp
次に下記のブログを参考に外付けHDDをRaspiにマウント. マウントは/mediaディレクトリにすること. ...
2枚のプロットを連続して出力する方法[Matplotlib]
![Thumbnail of post image 084](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/samuel-yongbo-kwon-wrQsfMKwElI-unsplash.jpg?resize=150%2C150&ssl=1)
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]
![Thumbnail of post image 194](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/bram-van-oost-6WvZo5FOxww-unsplash.jpg?resize=150%2C150&ssl=1)
from flair.embeddings import ELMoEmbeddingsfrom flair.data import Sentencesentence = Sentence(phrase)# Preparating ELMo ...
最近よく入力するコマンド[docker]
![Thumbnail of post image 186](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/mockaroon-bzLhhI3MpYY-unsplash.jpg?resize=150%2C150&ssl=1)
docker run -it –name “hoge” -v/home/ubuntu:/root/tmp -p 8080:80 hoge
Skype会議の招待はHTML形式でないとリンクが取れない[Skype]
![Thumbnail of post image 096](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/piotr-wilk-Kc-OBw1fMJg-unsplash.jpg?resize=150%2C150&ssl=1)
Outlookで
のボタンを押すと,簡単にSkype会議を設定できるのだが,
デフォルト設定のテキスト形式でメールを送ると,以下のように文字化けしてしまう.
こういうときは,ファイル > オプショ ...
コマンドプロンプトからファイルエクスプローラーを開く方法[Mac][Windows]
![Thumbnail of post image 044](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/georgia-de-lotz-muN_TndU9A0-unsplash.jpg?resize=150%2C150&ssl=1)
カレントディレクトリでエクスプローラーを開くためのコマンドを紹介.
WindowsとMacでコマンドが異なる.
for windows
explorer .for mac
open .sudo pythonでnot foundになる時はpythonの絶対パスを調べよう[Python]
![Thumbnail of post image 115](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/debby-hudson-hWVVtG0d8jM-unsplash.jpg?resize=150%2C150&ssl=1)
sudo python xxx.pyでスクリプトを実行した時,ライブラリが見つからないことがあった.
こういう時はwhichコマンドを使って,普段のpythonの絶対パスを調べる.
which python>/ ...EntityRulerを使って深層学習ベースのNERにルールを追加[sciSpacy]
![Thumbnail of post image 156](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/taylor-heery-71sp4JBYO-U-unsplash-2.jpg?resize=150%2C150&ssl=1)
本記事では、Spacyにおける標準のNER(en_core_sci_sm)に、ルールを追加する方法について紹介する。これができると、NERの結果が少し物足りないときにルールで微調整することができるため、覚えておくと便利だと思う。
Latexのbibでet al.を書く方法[Latex]
![Thumbnail of post image 064](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sidekix-media-FsgWEVacLU-unsplash.jpg?resize=150%2C150&ssl=1)
@inproceedings{suzuki2019,title={Hoge Hoge Title},author={Taro Suzuki and Jiro Suzuki and Saburo Suzuki and others},book ...
新しい環境にPython環境を準備[python]
![Thumbnail of post image 150](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/anna-sullivan-IUXR0sqs-mY-unsplash.jpg?resize=150%2C150&ssl=1)
Ubuntu16.04だと,2系と3系のpythonが混在しているため,pyenvで環境を作る.
必要なパッケージのインストール
sudo apt install -y git openssl libssl-dev ...