0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[WIP] TLから575を抽出してみた

Posted at

https://qiita.com/_ha1f/items/56e02c3a5e840c464d87 を元に、シェルスクリプトでできそうだったのでやってみました。

とりあえずjumanとやらのオテマエをワンライナーで確認してみる。

$ echo 'もう不要車載CDプレーヤー' | zeneisu | juman | grep -v '^@' | grep -v EOS | while read -r l; do printf '%s ' "$(echo "${l}" | cut -d ' ' -f 1)"; c=$(echo "${l}" | cut -d ' ' -f 2 | tr -d 'ぁゃぃ'  | wc -m); c=$((c-1)); echo "${c}"; done
もう 2
不要 3
車載 3
CD 4
プレーヤー 5
  • 長音符 → 1音
  • 拗音符 → 0音
  • 撥音符 → 1音

のように処理すると575の音の数になることがわかってきた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?