Last active
December 19, 2015 09:09
-
-
Save dulltz/5931406 to your computer and use it in GitHub Desktop.
2013春C 知識・自然言語処理の課題(1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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