Created
November 27, 2012 16:52
-
-
Save fuba/4155437 to your computer and use it in GitHub Desktop.
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
perl -I../lib -MYAML::Syck -MEncode -MNLPDocument::Sentence -e 'for (<>) { s/^.+?前\s//;my $s=NLPDocument::Sentence->new({str=>decode_utf8 $_});my %ff;map {$ff{$_->surface}++} $s->nouns;map {$f{$_}++} keys %ff}warn Dump [map {{$_ => $f{$_}}} (sort {$f{$b} <=> $f{$a}} grep {$f{$_} > 1} keys %f)]' /data/nicovideo.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment