Skip to content

Instantly share code, notes, and snippets.

@dulltz
Last active December 19, 2015 09:09
Show Gist options
  • Select an option

  • Save dulltz/5931406 to your computer and use it in GitHub Desktop.

Select an option

Save dulltz/5931406 to your computer and use it in GitHub Desktop.
2013春C 知識・自然言語処理の課題(1)
mecab -F "%f[6] %f[0]\n" sen179k.txt | LC_ALL=C sort | uniq -c | LC_ALL=C sort -nr | grep -v "EOS" | sed 15q > result1-1.txt
mecab -F "%f[6] %f[0]\n" neko.txt | grep "名詞" | LC_ALL=C sort | uniq -c | LC_ALL=C sort -nr | grep -v "EOS" | sed 15q > result1-2.txt
wget http://www.mast.tsukuba.ac.jp/outline/index.html
mecab -F "%f[6] %f[0]\n" index.html | egrep " 動詞|名詞" | LC_ALL=C sort | uniq -c | grep -v "EOS" > result1-3.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment