Python

Thumbnail of post image 037

import urllibfrom bs4 import BeautifulSoupif __name__ == "__main__":proxy = urllib.request.ProxyHandler({'http': '})open ...

Julia

Thumbnail of post image 012

Pythonでお世話になっているglob.*を使ってパターンマッチングしてくれるから,フォルダ内のファイルを読み込む際にとっても便利だ.

そんなglobだが,実はJuliaでも同様のライブラリが存在する!

これ ...

Python

Thumbnail of post image 006

Python3.6から追加されたフォーマット済み文字列リテラルを便利に使ってるなあと思った事例をいくつか紹介.

今後も見つけるたびに追加していこうと思う.

Bashのように{hoge}で変数を使う

Kaggleで ...

Python

Thumbnail of post image 043

Kaggleのコードを読んでいると以下のような記法を見つけた.

def greeting(name: str) -> str:return 'Hello ' + name

ん? -> ってなんぞ?

調 ...

NLP

Thumbnail of post image 189

NER(固有表現抽出)の評価の際によくでてくるCoNLL-2003.

データセットを眺めていると, 単語の横にPRP や B-NP, O などの記号が付いている.

これってどういう意味なの? と思ったので調べて ...

NER,NLP

Thumbnail of post image 023

本記事は,2018秋にバズった汎用言語モデルBERTをとりあえずつかってみたときのレポートである.

このBERTというモデルをpre-trainingに用いると,様々なNLPタスクで高精度がでるようだ.詳細に関しては以下の ...

PDF

Thumbnail of post image 008

ImageMagickのconvertコマンドを使う。

convert -density 150 7181-attention-is-all-you-need.pdf -quality 90 output.png

上を実行す ...

PDF

Thumbnail of post image 045

Popplerの付属コマンド、pdfimagesを使う。

# Popplerが入って無ければ入れる# install popperpdfimages -p -png hoge.pdf paper_fig

を実行するとpap ...

Python

Thumbnail of post image 070

pip install hoge --proxy

Python

Thumbnail of post image 076

導入
“r+” と “w+” と “a+” における挙動の違い“r+” の場合
“w+” の場合
&# ...