Last active
August 29, 2015 14:13
-
-
Save yukihir0/0112ae7bd7c3809b8417 to your computer and use it in GitHub Desktop.
GolangでMeCabを使う。
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
| input := "すもももももももものうち" | |
| result, err := mecab.Parse(input) | |
| if err != nil { | |
| panic(err) | |
| } | |
| for _, r := range result { | |
| if r.Pos == "名詞" { | |
| fmt.Println(r.Surface) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment