ni_haruのブログ

ほぼ日記

2018-02-01から1日間の記事一覧

Pythonで言語処理100本ノックを解く 04. 元素記号

Pythonで言語処理100本ノックを解いてみます。 5本目です。 環境 Ubuntu 16.04.3 LTS Python 3.5.2 04. 元素記号 "Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also Sign Peace Security Clause. Arthur King Can."という文を…

Pythonで言語処理100本ノックを解く 03. 円周率

Pythonで言語処理100本ノックを解いてみます。 4本目です。 環境 Ubuntu 16.04.3 LTS Python 3.5.2 03. 円周率 "Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics."という文を単語に分解し,各単語の(アル…